X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_keyhunt.qc;h=34d87f97bb677aaaa3c87c99a1b4a808938df8f3;hp=a0cbf619a77f61a6ea73a0e16bbf2c3c7c0b3f90;hb=31bf64ba7821ebb5c0aba8a154472810074ed11e;hpb=49af10f3413b96e52055359d42288dbf5ec6972b diff --git a/qcsrc/server/mutators/gamemode_keyhunt.qc b/qcsrc/server/mutators/gamemode_keyhunt.qc index a0cbf619a..34d87f97b 100644 --- a/qcsrc/server/mutators/gamemode_keyhunt.qc +++ b/qcsrc/server/mutators/gamemode_keyhunt.qc @@ -426,7 +426,7 @@ void kh_Key_Touch() // runs many, many times when a key has been dropped and ca // maybe start a shorter countdown? } - if not(IS_PLAYER(other)) + if (!IS_PLAYER(other)) return; if(other.deadflag != DEAD_NO) return; @@ -627,9 +627,9 @@ void kh_LoserTeam(float teem, entity lostkey) // runs when a player pushes a fl --j; } } - + Send_Notification(NOTIF_ALL, world, MSG_INFO, APP_TEAM_ENT_4(lostkey, INFO_KEYHUNT_LOST_), lostkey.kh_previous_owner.netname); - + play2all(kh_sound_destroy); te_tarexplosion(lostkey.origin); @@ -790,7 +790,7 @@ void kh_Key_DropOne(entity key) kh_Scores_Event(player, key, "dropkey", 0, 0); PlayerScore_Add(player, SP_KH_LOSSES, 1); Send_Notification(NOTIF_ALL, world, MSG_INFO, APP_TEAM_ENT_4(key, INFO_KEYHUNT_DROP_), player.netname); - + kh_Key_AssignTo(key, world); makevectors(player.v_angle); key.velocity = W_CalculateProjectileVelocity(player.velocity, autocvar_g_balance_keyhunt_throwvelocity * v_forward, FALSE); @@ -840,8 +840,8 @@ float kh_CheckPlayers(float num) if(!tmp_player.BUTTON_CHAT) if(tmp_player.team == t_team) ++players; - - if not(players) { return t_team; } + + if (!players) { return t_team; } } return 0; } @@ -855,7 +855,7 @@ void kh_WaitForPlayers() // delay start of the round until enough players are p } float p1 = kh_CheckPlayers(0), p2 = kh_CheckPlayers(1), p3 = kh_CheckPlayers(2), p4 = kh_CheckPlayers(3); - if not(p1 || p2 || p3 || p4) + if (!(p1 || p2 || p3 || p4)) { Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_KEYHUNT_ROUNDSTART, autocvar_g_balance_keyhunt_delay_round); kh_Controller_SetThink(autocvar_g_balance_keyhunt_delay_round, kh_StartRound); @@ -893,7 +893,7 @@ void kh_StartRound() // runs at the start of each round Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_KEYHUNT_WAIT, p1, p2, p3, p4); return; } - + Kill_Notification(NOTIF_ALL, world, MSG_CENTER_CPID, CPID_KEYHUNT); Kill_Notification(NOTIF_ALL, world, MSG_CENTER_CPID, CPID_KEYHUNT_OTHER);