Thread
:
[H3LP] Opposing Force Map Type
View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
12-20-2018 , 08:51 Re: [H3LP] Opposing Force Map Type
#
14
Turns out it checks if
spawnflags & 8
is true for the "worldspawn" entity. That spawnflag is set if "worldspawn" entity's keyvalue "defaultctf" == 1, in
CWorld::KeyValue
. I don't know if there are any other cases where spawnflags may be OR'd with 8, but it's unlikely because this decision has to be made while the world is spawning (before any other entities have spawned I think).
Now I'm not quite sure if you can do operations on the "worldspawn", such as calling
pev
to get
pev_spawnflags
, you'll have to figure out the rest yourself. May as well hook
KeyValue
.
__________________
AMXXPawn for VSCode
|
AlliedModders Dark Theme
|
Syntax Highlight for [ code ] blocks
In memory of Papa Franku
Last edited by klippy; 12-20-2018 at
08:55
.
klippy
View Public Profile
Send a private message to klippy
Find More Posts by klippy