1 .float midair_shieldtime;
3 MUTATOR_HOOKFUNCTION(midair_PlayerDamage)
5 if(IS_PLAYER(frag_attacker))
6 if(IS_PLAYER(frag_target))
7 if(time < self.midair_shieldtime)
13 MUTATOR_HOOKFUNCTION(midair_PlayerPowerups)
15 if(time >= game_starttime)
16 if(self.flags & FL_ONGROUND)
18 self.effects |= (EF_ADDITIVE | EF_FULLBRIGHT);
19 self.midair_shieldtime = max(self.midair_shieldtime, time + autocvar_g_midair_shieldtime);
25 MUTATOR_HOOKFUNCTION(midair_PlayerSpawn)
27 if(IS_BOT_CLIENT(self))
28 self.bot_moveskill = 0; // disable bunnyhopping
33 MUTATOR_HOOKFUNCTION(midair_BuildMutatorsString)
35 ret_string = strcat(ret_string, ":midair");
39 MUTATOR_HOOKFUNCTION(midair_BuildMutatorsPrettyString)
41 ret_string = strcat(ret_string, ", Midair");
45 MUTATOR_DEFINITION(mutator_midair)
47 MUTATOR_HOOK(PlayerDamage_Calculate, midair_PlayerDamage, CBC_ORDER_ANY);
48 MUTATOR_HOOK(PlayerPowerups, midair_PlayerPowerups, CBC_ORDER_ANY);
49 MUTATOR_HOOK(PlayerSpawn, midair_PlayerSpawn, CBC_ORDER_ANY);
50 MUTATOR_HOOK(BuildMutatorsString, midair_BuildMutatorsString, CBC_ORDER_ANY);
51 MUTATOR_HOOK(BuildMutatorsPrettyString, midair_BuildMutatorsPrettyString, CBC_ORDER_ANY);