Nuclide
Software Development Kit for id Technology (BETA)
UserEntity_Graffiti.h
1/*
2 * Copyright (c) 2025 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
17#ifdef CLIENT
29{
30public:
31 void ncUserEntity_Graffiti(void);
32
33 virtual float predraw(void);
34 virtual void ReloadVideoResources(void);
35
36private:
37 vector m_vecColor;
38 vector m_vecPosition;
39 vector m_vecAngles;
40 int m_iOwnerID;
41 string m_strName;
42 string m_m_strPath;
43 bool m_bInitialized;
44 bool m_bMonochrome;
45};
46
47void Spray_Parse(void);
48
49
50const string g_spray_mat_1 = \
51 "{\n" \
52 "cull disable\n" \
53 "polygonOffset\n" \
54 "{\n" \
55 "map $rt:%s\n" \
56 "blendfunc GL_SRC_COLOR GL_ONE_MINUS_SRC_COLOR\n" \
57 "rgbGen vertex\n" \
58 "}\n" \
59 "}";
60
61const string g_spray_mat_0 = \
62 "{\n" \
63 "cull disable\n" \
64 "polygonOffset\n" \
65 "{\n" \
66 "map $rt:%s\n" \
67 "blendfunc blend\n" \
68 "rgbGen vertex\n" \
69 "}\n" \
70 "}";
71
72#endif
73
74#ifdef SERVER
75void Spray_RemoveAll(entity entOwner);
76float Spray_SendEntity(entity ePEnt, float fChanged);
77void CSEv_Spraylogo(void);
78#endif
ncEntity is the lowest of the user-accessible entity class.
Definition: Entity.h:75
This entity class represents a ncPlayer their spraylogo.
Definition: UserEntity_Graffiti.h:29
void ncUserEntity_Graffiti(void)
Definition: UserEntity_Graffiti.qc:75
virtual void ReloadVideoResources(void)
Client: Called when video resources need to be allocated or reloaded for the entity.
Definition: UserEntity_Graffiti.qc:19
virtual float predraw(void)
Definition: UserEntity_Graffiti.qc:25