Raised This Month: $12 Target: $400
 3% 

Suicide Intercept


Post New Thread Reply   
 
Thread Tools Display Modes
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 01-14-2012 , 11:53   Re: Suicide Intercept
Reply With Quote #21

Nice plugin.

The only thing i noticed that should be changed is the version cvar flags should have the FCVAR_DONTRECORD so that it isn't written into the config file. Other than that all looks good!
Dr!fter is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-14-2012 , 12:01   Re: Suicide Intercept
Reply With Quote #22

okay, I'll update this one as well... I'll post an update today

thank you
__________________
View my Plugins | Donate
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-14-2012 , 13:38   Re: Suicide Intercept
Reply With Quote #23

Updated the plugin - if you have Updater it should auto-update, if not, get the new files from the OP

Code:
Version 1.5.3
- Added flag FCVAR_DONTRECORD to plugin version CVar
- Added CVar for Updater - defaulted to off
- Commented some more of the code
__________________
View my Plugins | Donate
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-27-2012 , 20:38   Re: Suicide Intercept
Reply With Quote #24

just one question, If they are already dead, will it still delay? I would install this plugin if it doesn't delay any commands if they are already dead.
__________________
Steam_id: thejuice027
thejuice027 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2012 , 20:47   Re: Suicide Intercept
Reply With Quote #25

I believe when they die after trying to suicide, I coded to kill all delayed timers.
__________________
View my Plugins | Donate
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-27-2012 , 20:49   Re: Suicide Intercept
Reply With Quote #26

no, i mean, say I kill them with a soilders rocket, then they attempt to switch classes, will they switch immideatly or will they have to wait?

So, die, attempt to switch, what happens?

instead of

attempt to switch, wait, dies and switches.
__________________
Steam_id: thejuice027

Last edited by thejuice027; 04-27-2012 at 20:50.
thejuice027 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2012 , 20:50   Re: Suicide Intercept
Reply With Quote #27

if they're dead, and want to switch classes, it will let them... the class switch will be handled by the game and game rules


This is the first check in the command callback (when a player switches classes, or types a suicide command) and it checks to make sure the player is alive before acting on the command:

PHP Code:
if(client == || !IsPlayerAlive(client) || IsFakeClient(client) || GetClientTeam(client) < 2)
{
    return 
Plugin_Continue;

So, if a player is dead, it allows the player to do anything - joinclass, jointeam, explode, kill, spectate
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-27-2012 at 20:54.
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-27-2012 , 20:56   Re: Suicide Intercept
Reply With Quote #28

well, I want to use this plugin in conjunction with the rtd plugin. I like this plugin because it will stop people from killing themselves when they roll a negative effect. Only problem I see is that it could be frusterating. I also have instant spawn in my server, which doesn't exactly always instantly spawn them, usually takes about 3-4 seconds after dying. If a player spawns then wants to switch but was late because he/she already spawned, then they'll be waiting longer. Is there anyway I can make a request? I was wondering if this could be enabled ONLY during the time a player is rolling (rtd, roll the dice). Or even maybe allow them to swich classes up to after 15 seconds after spawn?
__________________
Steam_id: thejuice027
thejuice027 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-27-2012 , 20:59   Re: Suicide Intercept
Reply With Quote #29

Sure, I can add a configurable timer (CVar to set the number of seconds) so that a player can use a suicide command (jointeam, joinclass, spectate, kill, explode) within n seconds after player_spawn.

Give me till the weekend (maybe a few more days) as I have another request I need to fulfill first on another of my plugins, plus I'm out of town till week after next.
__________________
View my Plugins | Donate
TnTSCS is offline
thejuice027
Senior Member
Join Date: Dec 2009
Old 04-27-2012 , 21:04   Re: Suicide Intercept
Reply With Quote #30

ill be watching.
__________________
Steam_id: thejuice027
thejuice027 is offline
Reply


Thread Tools
Display Modes

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 16:33.


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