Commit Graph

11 Commits

Author SHA1 Message Date
emmie
56a46d0790 spraycan: use permanent decals
instead of using auto decals, letting them time out and just Not
replacing them when they're meant to be gone, this spawns a permanent
decal (not affected by decal limit) and explicitly deletes it when
necessary.
as a consequence of this, spraying more than 11 decals Immediately
removes the oldest spray.

Addresses issue #1
2023-09-11 20:47:55 -07:00
emmie
f4bf7a793e spraycan: fix cvar not being updated properly
GetCVar returns a per-player copy of the requested cvar, which is only
used to have separate values for each player - changes are propagated To
it, but not From it.
writing to this cvar is only useful if you know what the actual new
value is going to be & want the cvar to update Immediately.
(in this case, the cvar needs to be updated before A_SetHelpText so the
 displayed spray name is correct)

FindCVar returns the actual cvar for the local player. changes to this
cvar Are propagated to other clients.
2023-09-11 20:47:55 -07:00
emmie
333c40e46a silence implicit float->int conversion warnings 2023-09-11 20:47:55 -07:00
b750dd6663 Set max sprays to a CVar. 2023-09-10 19:51:53 -07:00
74dfb16dff Doubled number of sprays that persist per player. Added example spray mod. 2023-09-09 18:03:56 -07:00
da6670956d Documented the spray cans, barely. 2023-09-09 16:54:49 -07:00
739474a774 Added a bunch of pride flags. 2023-09-09 16:44:13 -07:00
c830efa728 Pre-stream whatever. 2023-09-09 14:34:54 -07:00
13a99783b3 Cleanup and stuff. 2023-09-09 13:00:20 -07:00
a521cd6074 Custom sprays can now work in theory. 2023-09-09 12:31:23 -07:00
4d5e7f1d0e Initial spraycan implementation. 2023-09-09 09:02:54 -07:00