You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CConVar<float> g_cvarZMNapalmFullDamage("zm_napalm_full_damage", FCVAR_NONE, "The amount of damage needed to apply full burn duration for napalm grenades (max grenade damage is 99)", 50.0f, true, 0.0f, true, 99.0f);
84
84
CConVar<float> g_cvarZMDamageCashScale("zm_damage_cash_scale", FCVAR_NONE, "Multiplier on cash given when damaging zombies (0.0 = disabled)", 0.0f, true, 0.0f, false, 100.0f);
85
85
CConVar<int> g_cvarZMDefaultWinnerTeam("zm_default_winner_team", FCVAR_NONE, "Which team wins when time ran out [1 = Draw, 2 = Zombies, 3 = Humans]", CS_TEAM_SPECTATOR, true, 1, true, 3);
86
-
CConVar<bool> g_cvarZMZteleHuman("zm_zmtele_allow_humans", FCVAR_NONE, "Whether to allow humans to use zmtele", false);
87
-
CConVar<float> g_cvarZMMaxZteleDistance("zm_zmtele_max_distance", FCVAR_NONE, "Maximum distance players are allowed to move after starting ztele", 150.0f, true, 0.0f, false, 0.0f);
86
+
CConVar<bool> g_cvarZMZteleHuman("zm_ztele_allow_humans", FCVAR_NONE, "Whether to allow humans to use zmtele", false);
87
+
CConVar<float> g_cvarZMMaxZteleDistance("zm_ztele_max_distance", FCVAR_NONE, "Maximum distance players are allowed to move after starting ztele", 150.0f, true, 0.0f, false, 0.0f);
88
+
CConVar<bool> g_cvarZMTeleHumanAfter("zm_ztele_human_after", FCVAR_NONE, "Allow humans to use ZTele after the mother zombie has spawned. 0 means always allowed.", true);
89
+
CConVar<float> g_cvarZMTeleDelayZombie("zm_ztele_delay_zombie", FCVAR_NONE, "Time between using ZTele command and teleportation for zombies. [Dependency: zr_ztele_zombie]", 3.0f, true, 1.0f, true, 100.0f);
90
+
CConVar<float> g_cvarZMTeleDelayHuman("zm_ztele_delay_human", FCVAR_NONE, "Time between using ZTele command and teleportation for humans. [Dependency: zm_ztele_allow_humans]", 3.0f, true, 1.0f, true, 100.0f);
91
+
CConVar<int> g_cvarZMTeleMaxZombie("zm_ztele_max_zombie", FCVAR_NONE, "Max number of times a zombie is allowed to use ZTele per round.", 3, true, 0, true, 30);
92
+
CConVar<int> g_cvarZMTeleMaxHuman("zm_ztele_max_human", FCVAR_NONE, "Max number of times a human is allowed to use ZTele per round. [Dependency: zm_ztele_allow_humans]", 1, true, 0, true, 30);
Message("Engine failed to find ZEPlayer for ztele");
1134
+
return;
1135
+
}
1136
+
1137
+
if (player->m_iTeamNum() == CS_TEAM_CT && pPlayer->GetHumanTeleUsages() >= g_cvarZMTeleMaxHuman.Get())
1138
+
{
1139
+
ClientPrint(player, HUD_PRINTTALK, ZM_PREFIX "You have already teleported this round more than the maximum allowed number of times for a human (%d)!", g_cvarZMTeleMaxHuman.Get());
1140
+
return;
1141
+
}
1142
+
1143
+
if (player->m_iTeamNum() == CS_TEAM_T && pPlayer->GetZombieTeleUsages() >= g_cvarZMTeleMaxZombie.Get())
1144
+
{
1145
+
ClientPrint(player, HUD_PRINTTALK, ZM_PREFIX "You have already teleported this round more than the maximum allowed number of times for a zombie (%d)!", g_cvarZMTeleMaxZombie.Get());
1146
+
return;
1147
+
}
1148
+
1093
1149
// Get initial player position so we can do distance check
1094
1150
Vector initialpos = pPawn->GetAbsOrigin();
1095
1151
1096
-
ClientPrint(player, HUD_PRINTTALK, ZM_PREFIX "Teleporting to spawn in 5 seconds.");
0 commit comments