AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Autorespawn for Admins (https://forums.alliedmods.net/showthread.php?t=110918)

Chefe 12-04-2009 17:10

[TF2] Autorespawn for Admins
 
1 Attachment(s)
Autorespawn for Admins

This plugin allow admins with the "t" flag or all players to respawn in variable amount of time. The plugin is in default disabled at roundend and in the sudden death round. You can choose between respawn only admins or all automatically. Since 1.5 it is possible to teleport the players back to there old position.

The Plugin autogenerate an config in cfg/sourcemod.


CVARs (defaults bold)


sm_instant_enabled (0 | 1) (enable or disable the plugin)

sm_instant_time (>= 0.1) (set the respawn time for admins or players)

sm_instant_admins_only (0 | 1) (1 = respawn only admins automatically, 0 = respawn all automatically)

sm_instant_sudeath (0 | 1) (1 = don't respawn players in Sudden Death, 0 = respawn in Sudden Death)

sm_instant_re (0 | 1) (1 = don't respawn players on RoundEnd, 0 = respawn on Roundend)

sm_instant_teleport (0 | 1) (1 = teleport players back to the old position, 0 = disable teleport to old position)

sm_instant_flag (t) (Set the flag need by admins to use the instant respawn. Use flags like t or o and so on...)

sm_instant_version (shows the current plugin version)


Changelog

1.0

- initial release

1.1

- fixed the Spy-problem (thanks to psychonic)

1.2


- fixed that the plugin is not disabled in the sudden death round
- add that instant respawn can only use if the admin has the "t" flag

1.3

- add the FCVAR_NOTIFY flag to all convar`s
- add CONVAR "sm_instant_version" that show the current plugin version

1.4

- add convar "sm_instant_admins_only" (for description look by ConVars)

1.4.1

- remove the NOTIFY flag from sm_instant_version

1.4.2

- add the NOTIFY flag to sm_instant_version and remove it from all other cvars (yes my mistake :) )

1.4.3

- do little change on the version convar (for tracking)

1.5

- add ConVar sm_instant_sudeath
- add ConVar sm_instant_re
- add ConVar sm_instant_teleport
- add teleport function

1.5.1

- add restoring of old angles on teleport after respawn
- fixed some descriptions

1.5.2

- fixed custom flag not working

1.5.3

- added flag set by convar (default flag is t)

1.5.4

- fixed sm_instant_version not shows the current plugin version
- fixed that ClientRespawn() is called when player is not ingame
- fixed that sm_instant_sudeath not worked correctly

1.5.5

- fixed sm_instant_re working wrong like the other carvar

1.5.6

- added respawntime tag to be conform with valves server rules

1.5.7

- added respawntime tag to be conform with valves server rules (again)

1.5.8

- fixed typo in tag(s)


Have FUN! :mrgreen:

noodleboy347 12-07-2009 23:22

Re: [TF2] Autorespawn for Admins
 
This works great, thanks!

psychonic 12-08-2009 15:32

Re: [TF2] Autorespawn for Admins
 
Quote:

Originally Posted by Chefe (Post 1007106)
When you are a Spy with the Deadringer, the Autorespawner is Disabled for you, because you will respawn when it was a fake death, too.

You can check for feign death by looking at the death_flags property on the player_death event.

PHP Code:

new death_flags GetEventInt(event"death_flags");
if (!(
death_flags 32))
{
    
// real kill



Chefe 12-08-2009 15:48

Re: [TF2] Autorespawn for Admins
 
Quote:

Originally Posted by psychonic (Post 1010490)
You can check for feign death by looking at the death_flags property on the player_death event.

PHP Code:

new death_flags GetEventInt(event"death_flags");
if (!(
death_flags 32))
{
    
// real kill



Thank you. I will fix it.:mrgreen:

EDIT: Fixed. Have fun.

ph 12-16-2009 18:38

Re: [TF2] Autorespawn for Admins
 
When TF2 map enters sudden death, it never ends as players keep respawning!!!

Can this be turned off during sudden death.

noodleboy347 12-16-2009 21:02

Re: [TF2] Autorespawn for Admins
 
Can you make this admin-only? Lul, kidding.

Can you make a flag cvar?

Chefe 12-17-2009 09:54

Re: [TF2] Autorespawn for Admins
 
Quote:

Originally Posted by KHALIK (Post 1019236)
When TF2 map enters sudden death, it never ends as players keep respawning!!!

Can this be turned off during sudden death.

I will fix it.

@ noodleboy347: It is already admin only :) . But i can make a flag, too.

FINALE EDIT: I fixed the sudden death round problem and now admins require the "t" flag to use the autorespawn.

Chefe 12-18-2009 10:11

Re: [TF2] Autorespawn for Admins
 
UPDATE

Add ConVar "version" and fix that i have forgot the ConVar-flags :)

Chefe 12-20-2009 17:20

Re: [TF2] Autorespawn for Admins
 
UPDATE

Add a carvar that allow you to choose between spawn only admins or all automatically.

ph 12-24-2009 22:36

Re: [TF2] Autorespawn for Admins
 
Quote:

Originally Posted by Chefe (Post 1019730)
I will fix it.

@ noodleboy347: It is already admin only :) . But i can make a flag, too.

FINALE EDIT: I fixed the sudden death round problem and now admins require the "t" flag to use the autorespawn.


Say I have 5 admins with "t" flags, under sudden death playing?

Will I still get this problem?


All times are GMT -4. The time now is 03:25.

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