Raised This Month: $ Target: $400
 0% 

[TF2] Any idea on making a addcond plugin that reactivates if you spawn?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-20-2016 , 21:45   Re: [TF2] Any idea on making a addcond plugin that reactivates if you spawn?
Reply With Quote #2

Hook the player_spawn event to find out when the player spawns, then use TF2_AddCondition() to apply the effect.

If you want players to configure which condition they spawn with, then you probably want to create some sort of command like sm_spawncond, parse their desired condition, and store it in a plugin-scoped array:

Code:
TFCond g_DesiredConditions[MAXPLAYERS+1];
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode