AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Suicide Intercept (https://forums.alliedmods.net/showthread.php?t=163257)

Dr!fter 01-14-2012 11:53

Re: Suicide Intercept
 
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!

TnTSCS 01-14-2012 12:01

Re: Suicide Intercept
 
okay, I'll update this one as well... I'll post an update today :)

thank you

TnTSCS 01-14-2012 13:38

Re: Suicide Intercept
 
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


thejuice027 04-27-2012 20:38

Re: Suicide Intercept
 
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.

TnTSCS 04-27-2012 20:47

Re: Suicide Intercept
 
I believe when they die after trying to suicide, I coded to kill all delayed timers.

thejuice027 04-27-2012 20:49

Re: Suicide Intercept
 
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.

TnTSCS 04-27-2012 20:50

Re: Suicide Intercept
 
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

thejuice027 04-27-2012 20:56

Re: Suicide Intercept
 
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?

TnTSCS 04-27-2012 20:59

Re: Suicide Intercept
 
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.

thejuice027 04-27-2012 21:04

Re: Suicide Intercept
 
ill be watching.


All times are GMT -4. The time now is 23:58.

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