-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmutation1.nut
More file actions
101 lines (88 loc) · 2.75 KB
/
Copy pathmutation1.nut
File metadata and controls
101 lines (88 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//-----------------------------------------------------
Msg("Activating Mutation 1\n");
DirectorOptions <-
{
ActiveChallenge = 1
cm_NoSurvivorBots = true
cm_CommonLimit = 0
cm_DominatorLimit = 1
cm_MaxSpecials = 2
cm_SpecialRespawnInterval = 60
cm_AutoReviveFromSpecialIncap = true
cm_AllowPillConversion = false
BoomerLimit = 0
MobMaxPending = 0
SurvivorMaxIncapacitatedCount = 1
SpecialInitialSpawnDelayMin = 5
SpecialInitialSpawnDelayMax = 30
TankHitDamageModifierCoop = 0.5
// convert items that aren't useful
weaponsToConvert =
{
weapon_pipe_bomb = "weapon_molotov_spawn"
weapon_vomitjar = "weapon_molotov_spawn"
weapon_defibrillator = "weapon_first_aid_kit_spawn"
weapon_smg = "weapon_rifle_spawn"
weapon_pumpshotgun = "weapon_autoshotgun_spawn"
weapon_smg_silenced = "weapon_rifle_desert_spawn"
weapon_shotgun_chrome = "weapon_shotgun_spas_spawn"
weapon_smg_mp5 = "weapon_rifle_sg552_spawn"
}
function ConvertWeaponSpawn( classname )
{
if ( classname in weaponsToConvert )
{
return weaponsToConvert[classname];
}
return 0;
}
}
function OnGameEvent_round_start_post_nav( params )
{
for ( local spawner; spawner = Entities.FindByClassname( spawner, "info_zombie_spawn" ); )
{
local population = NetProps.GetPropString( spawner, "m_szPopulation" );
if ( population == "boomer" || population == "hunter" || population == "smoker" || population == "jockey"
|| population == "charger" || population == "spitter" || population == "new_special" || population == "church"
|| population == "tank" || population == "witch" || population == "witch_bride" || population == "river_docks_trap" )
continue;
else
spawner.Kill();
}
if ( Director.GetMapName() == "c5m5_bridge" || Director.GetMapName() == "c6m3_port" )
DirectorOptions.cm_MaxSpecials = 0;
foreach( wep, val in DirectorOptions.weaponsToConvert )
{
for ( local wep_spawner; wep_spawner = Entities.FindByClassname( wep_spawner, wep + "_spawn" ); )
{
local spawnTable =
{
origin = wep_spawner.GetOrigin(),
angles = wep_spawner.GetAngles().ToKVString(),
targetname = wep_spawner.GetName(),
count = NetProps.GetPropInt( wep_spawner, "m_itemCount" ),
spawnflags = NetProps.GetPropInt( wep_spawner, "m_spawnflags" )
}
wep_spawner.Kill();
SpawnEntityFromTable(val, spawnTable);
}
}
}
function OnGameEvent_finale_start( params )
{
if ( Director.GetMapName() == "c6m3_port" )
DirectorOptions.cm_MaxSpecials = 2;
}
function OnGameEvent_gauntlet_finale_start( params )
{
if ( Director.GetMapName() == "c5m5_bridge" )
DirectorOptions.cm_MaxSpecials = 2;
}
function Update()
{
if ( Director.GetCommonInfectedCount() > 0 )
{
for ( local infected; infected = Entities.FindByClassname( infected, "infected" ); )
infected.Kill();
}
}