View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-20-2012 , 03:59   Re: [L4D2] Weapon, Survivor, Gamemode identification includes (Trie)
Reply With Quote #4

It depends what you want the check for... the netprop will allow them to vocalize as that character, but the model could be different... look at CSM. I think the model check is best, since people will most likely want to do something with the character they look like, and not some other character because their voice is different. For example some plugins use Bill model only to prevent crashes.

Edit: Regarding the gamemodes, I personally create the info_gamemode entity and fire it's PostSpawnActivate input, to determine gamemode. Regardless of the mp_gamemode (for example mutation12 is still Versus), it reports back if the mode is: Coop,Survival,Versus,Scavenge. Not realism.
__________________

Last edited by Silvers; 05-20-2012 at 04:02.
Silvers is offline