AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ] [L4D2] Tank speeds up SI Spawn Time (https://forums.alliedmods.net/showthread.php?t=132582)

DarkWolff 07-16-2010 14:15

[REQ] [L4D2] Tank speeds up SI Spawn Time
 
I'm looking for a plugin that speeds up the SI respawn timer whenever a tank is out. Is there anyone interested in making this plugin?

IronWarrior 07-16-2010 14:46

Re: [REQ] [L4D2] Tank speeds up SI Spawn Time
 
Nice idea, I like.

Jon 07-16-2010 14:55

Re: [REQ] [L4D2] Tank speeds up SI Spawn Time
 
Something like this

Code:
#include <sourcemod> #define SPAWN_INTERVAL_TANK 10 #define SPAWN_INTERVAL_NORMAL 20 new Handle:g_cvarSpawnInterval = INVALID_HANDLE public Plugin:myinfo = {     name = "Faster Spawns",     author = "Jon",     description = "Reduces spawn time for special infected during tank",     version = "1.0" } public OnPluginStart( ) {     g_cvarSpawnInterval = FindConVar( "versus_special_respawn_interval" )     HookEvent( "tank_spawn", TankSpawn )     HookEvent( "tank_killed", TankKilled )     HookEvent( "round_end", RoundEnd ) } public Action:TankSpawn( Handle:event, const String:name[], bool:dontBroadcast )     SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_TANK ) public Action:TankKilled( Handle:event, const String:name[], bool:dontBroadcast )     SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_NORMAL )     public Action:RoundEnd( Handle:event, const String:name[], bool:dontBroadcast )     SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_NORMAL )

dirka_dirka 07-16-2010 16:16

Re: [REQ] [L4D2] Tank speeds up SI Spawn Time
 
that might work when theres only 1 tank alive..
but if this is used on c3m4_plantation coop, or in any survival game, or on any custom server with multiple tanks.. it will get confused until the round ends. need to check if there are any other tanks alive when 1 tank dies before reverting it to normal.

Jon 07-16-2010 16:47

Re: [REQ] [L4D2] Tank speeds up SI Spawn Time
 
Was intented for 4v4 vs

DarkWolff 07-18-2010 18:28

Re: [REQ] [L4D2] Tank speeds up SI Spawn Time
 
Thanks! Gonna try it out shortly.


All times are GMT -4. The time now is 05:49.

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