X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qc;h=ce28b4197067e85f623f8ced7f863458b162b163;hb=7d31226bcb7eb09c889f3a817562270573f32c66;hp=dcbe7f183cb035595fab380ae8c22229806609d5;hpb=094f9682a7e8258a383ea9574dc7144eaf7ceecc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index dcbe7f183..ce28b4197 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -118,7 +118,7 @@ void GameLogEcho(string s) { if (!logfile_open) { - logfile_open = TRUE; + logfile_open = true; matches = autocvar_sv_eventlog_files_counter + 1; cvar_set("sv_eventlog_files_counter", ftos(matches)); fn = ftos(matches); @@ -131,7 +131,7 @@ void GameLogEcho(string s) if (logfile >= 0) { if (autocvar_sv_eventlog_files_timestamps) - fputs(logfile, strcat(":time:", strftime(TRUE, "%Y-%m-%d %H:%M:%S", "\n", s, "\n"))); + fputs(logfile, strcat(":time:", strftime(true, "%Y-%m-%d %H:%M:%S", "\n", s, "\n"))); else fputs(logfile, strcat(s, "\n")); } @@ -202,7 +202,7 @@ entity findnearest(vector point, .string field, string value, vector axismod) else dist = localhead.origin; dist = dist - point; - dist = dist_x * axismod_x * '1 0 0' + dist_y * axismod_y * '0 1 0' + dist_z * axismod_z * '0 0 1'; + dist = dist.x * axismod.x * '1 0 0' + dist.y * axismod.y * '0 1 0' + dist.z * axismod.z * '0 0 1'; len = vlen(dist); for (i = 0; i < num_nearest; ++i) @@ -232,7 +232,7 @@ entity findnearest(vector point, .string field, string value, vector axismod) // now use the first one from our list that we can see for (i = 0; i < num_nearest; ++i) { - traceline(point, nearest_entity[i].origin, TRUE, world); + traceline(point, nearest_entity[i].origin, true, world); if (trace_fraction == 1) { if (i != 0) @@ -368,7 +368,7 @@ string formatmessage(string msg) if (replacement == "" || !cursor_ent) replacement = "nothing"; } else if (escape == "s") - replacement = ftos(vlen(self.velocity - self.velocity_z * '0 0 1')); + replacement = ftos(vlen(self.velocity - self.velocity.z * '0 0 1')); else if (escape == "S") replacement = ftos(vlen(self.velocity)); @@ -378,8 +378,8 @@ string formatmessage(string msg) return msg; } -float boolean(float value) { // if value is 0 return FALSE (0), otherwise return TRUE (1) - return (value == 0) ? FALSE : TRUE; +float boolean(float value) { // if value is 0 return false (0), otherwise return true (1) + return (value == 0) ? false : true; } /* @@ -489,6 +489,7 @@ void GetCvars(float f) GetCvars_handleFloat(s, f, autoswitch, "cl_autoswitch"); GetCvars_handleFloat(s, f, cvar_cl_autoscreenshot, "cl_autoscreenshot"); + GetCvars_handleFloat(s, f, cvar_cl_jetpack_jump, "cl_jetpack_jump"); GetCvars_handleString(s, f, cvar_g_xonoticversion, "g_xonoticversion"); GetCvars_handleFloat(s, f, cvar_cl_handicap, "cl_handicap"); GetCvars_handleFloat(s, f, cvar_cl_clippedspectating, "cl_clippedspectating"); @@ -633,8 +634,8 @@ float g_weapon_stay; float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still needs done? { - var float i = weaponinfo.weapon; - var float d = 0; + float i = weaponinfo.weapon; + float d = 0; if (!i) return 0; @@ -642,9 +643,9 @@ float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still ne if (g_lms || g_ca || allguns) { if(weaponinfo.spawnflags & WEP_FLAG_NORMAL) - d = TRUE; + d = true; else - d = FALSE; + d = false; } else if (g_cts) d = (i == WEP_SHOTGUN); @@ -658,7 +659,7 @@ float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still ne if(!g_cts && (weaponinfo.spawnflags & WEP_FLAG_MUTATORBLOCKED)) // never default mutator blocked guns d = 0; - var float t = weaponinfo.weaponstartoverride; + float t = weaponinfo.weaponstartoverride; //print(strcat("want_weapon: ", weaponinfo.netname, " - d: ", ftos(d), ", t: ", ftos(t), ". \n")); @@ -782,7 +783,7 @@ void readplayerstartcvars() for (i = WEP_FIRST; i <= WEP_LAST; ++i) { e = get_weaponinfo(i); - float w = want_weapon(e, FALSE); + float w = want_weapon(e, false); if(w & 1) start_weapons |= WepSet_FromWeapon(i); if(w & 2) @@ -797,11 +798,11 @@ void readplayerstartcvars() if(start_items & IT_UNLIMITED_WEAPON_AMMO) { - start_ammo_rockets = 999; start_ammo_shells = 999; + start_ammo_nails = 999; + start_ammo_rockets = 999; start_ammo_cells = 999; start_ammo_plasma = 999; - start_ammo_nails = 999; start_ammo_fuel = 999; } else @@ -820,6 +821,7 @@ void readplayerstartcvars() warmup_start_ammo_nails = start_ammo_nails; warmup_start_ammo_rockets = start_ammo_rockets; warmup_start_ammo_cells = start_ammo_cells; + warmup_start_ammo_plasma = start_ammo_plasma; warmup_start_ammo_fuel = start_ammo_fuel; warmup_start_health = start_health; warmup_start_armorvalue = start_armorvalue; @@ -830,9 +832,10 @@ void readplayerstartcvars() if (!g_weaponarena && !g_ca) { warmup_start_ammo_shells = cvar("g_warmup_start_ammo_shells"); - warmup_start_ammo_cells = cvar("g_warmup_start_ammo_cells"); warmup_start_ammo_nails = cvar("g_warmup_start_ammo_nails"); warmup_start_ammo_rockets = cvar("g_warmup_start_ammo_rockets"); + warmup_start_ammo_cells = cvar("g_warmup_start_ammo_cells"); + warmup_start_ammo_plasma = cvar("g_warmup_start_ammo_plasma"); warmup_start_ammo_fuel = cvar("g_warmup_start_ammo_fuel"); warmup_start_health = cvar("g_warmup_start_health"); warmup_start_armorvalue = cvar("g_warmup_start_armor"); @@ -860,7 +863,6 @@ void readplayerstartcvars() if ((start_items & IT_JETPACK) || (g_grappling_hook && (start_weapons & WEPSET_HOOK))) { - g_grappling_hook = 0; // these two can't coexist, as they use the same button start_items |= IT_FUEL_REGEN; start_ammo_fuel = max(start_ammo_fuel, cvar("g_balance_fuel_rotstable")); warmup_start_ammo_fuel = max(warmup_start_ammo_fuel, cvar("g_balance_fuel_rotstable")); @@ -878,16 +880,16 @@ void readplayerstartcvars() start_ammo_shells = max(0, start_ammo_shells); start_ammo_nails = max(0, start_ammo_nails); + start_ammo_rockets = max(0, start_ammo_rockets); start_ammo_cells = max(0, start_ammo_cells); start_ammo_plasma = max(0, start_ammo_plasma); - start_ammo_rockets = max(0, start_ammo_rockets); start_ammo_fuel = max(0, start_ammo_fuel); warmup_start_ammo_shells = max(0, warmup_start_ammo_shells); warmup_start_ammo_nails = max(0, warmup_start_ammo_nails); + warmup_start_ammo_rockets = max(0, warmup_start_ammo_rockets); warmup_start_ammo_cells = max(0, warmup_start_ammo_cells); warmup_start_ammo_plasma = max(0, warmup_start_ammo_plasma); - warmup_start_ammo_rockets = max(0, warmup_start_ammo_rockets); warmup_start_ammo_fuel = max(0, warmup_start_ammo_fuel); } @@ -1035,15 +1037,15 @@ void readlevelcvars(void) string precache_sound (string s) = #19; float precache_sound_index (string s) = #19; -#define SND_VOLUME 1 -#define SND_ATTENUATION 2 -#define SND_LARGEENTITY 8 -#define SND_LARGESOUND 16 +const float SND_VOLUME = 1; +const float SND_ATTENUATION = 2; +const float SND_LARGEENTITY = 8; +const float SND_LARGESOUND = 16; float sound_allowed(float dest, entity e) { // sounds from world may always pass - for (;;) + for(0;;) { if (e.classname == "body") e = e.enemy; @@ -1057,13 +1059,13 @@ float sound_allowed(float dest, entity e) // sounds to self may always pass if (dest == MSG_ONE) if (e == msg_entity) - return TRUE; + return true; // sounds by players can be removed if (autocvar_bot_sound_monopoly) if (IS_REAL_CLIENT(e)) - return FALSE; + return false; // anything else may pass - return TRUE; + return true; } #undef sound @@ -1119,9 +1121,9 @@ void soundtoat(float dest, entity e, vector o, float chan, string samp, float vo else WriteByte(dest, idx); - WriteCoord(dest, o_x); - WriteCoord(dest, o_y); - WriteCoord(dest, o_z); + WriteCoord(dest, o.x); + WriteCoord(dest, o.y); + WriteCoord(dest, o.z); } void soundto(float dest, entity e, float chan, string samp, float vol, float atten) { @@ -1161,9 +1163,9 @@ void stopsoundto(float dest, entity e, float chan) WriteShort(dest, idx); else WriteByte(dest, idx); - WriteCoord(dest, e.origin_x); - WriteCoord(dest, e.origin_y); - WriteCoord(dest, e.origin_z); + WriteCoord(dest, e.origin.x); + WriteCoord(dest, e.origin.y); + WriteCoord(dest, e.origin.z); } else { @@ -1192,15 +1194,15 @@ void play2(entity e, string filename) float spamsound(entity e, float chan, string samp, float vol, float atten) { if (!sound_allowed(MSG_BROADCAST, e)) - return FALSE; + return false; if (time > e.spamtime) { e.spamtime = time; sound(e, chan, samp, vol, atten); - return TRUE; + return true; } - return FALSE; + return false; } void play2team(float t, string filename) @@ -1243,7 +1245,7 @@ void precache_playermodel(string m) if(fexists(f)) precache_model(f); - globhandle = search_begin(strcat(m, "_*.sounds"), TRUE, FALSE); + globhandle = search_begin(strcat(m, "_*.sounds"), true, false); if (globhandle < 0) return; n = search_getsize(globhandle); @@ -1260,7 +1262,7 @@ void precache_all_playermodels(string pattern) float globhandle, i, n; string f; - globhandle = search_begin(pattern, TRUE, FALSE); + globhandle = search_begin(pattern, true, false); if (globhandle < 0) return; n = search_getsize(globhandle); @@ -1391,14 +1393,14 @@ void precache() #define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return #define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init() -#define INITPRIO_FIRST 0 -#define INITPRIO_GAMETYPE 0 -#define INITPRIO_GAMETYPE_FALLBACK 1 -#define INITPRIO_FINDTARGET 10 -#define INITPRIO_DROPTOFLOOR 20 -#define INITPRIO_SETLOCATION 90 -#define INITPRIO_LINKDOORS 91 -#define INITPRIO_LAST 99 +const float INITPRIO_FIRST = 0; +const float INITPRIO_GAMETYPE = 0; +const float INITPRIO_GAMETYPE_FALLBACK = 1; +const float INITPRIO_FINDTARGET = 10; +const float INITPRIO_DROPTOFLOOR = 20; +const float INITPRIO_SETLOCATION = 90; +const float INITPRIO_LINKDOORS = 91; +const float INITPRIO_LAST = 99; .void(void) initialize_entity; .float initialize_entity_order; @@ -1482,7 +1484,7 @@ void InitializeEntity(entity e, void(void) func, float order) cur = initialize_entity_first; prev = world; - for (;;) + for(0;;) { if (!cur || cur.initialize_entity_order > order) { @@ -1610,7 +1612,7 @@ float EliminatedPlayers_SendEntity(entity to, float sendflags) } } - return TRUE; + return true; } void EliminatedPlayers_Init(float(entity) isEliminated_func) @@ -1620,7 +1622,7 @@ void EliminatedPlayers_Init(float(entity) isEliminated_func) backtrace("Can't spawn eliminatedPlayers again!"); return; } - Net_LinkEntity(eliminatedPlayers = spawn(), FALSE, 0, EliminatedPlayers_SendEntity); + Net_LinkEntity(eliminatedPlayers = spawn(), false, 0, EliminatedPlayers_SendEntity); eliminatedPlayers.isEliminated = isEliminated_func; } @@ -1675,9 +1677,9 @@ float trace_hits_box_1d(float end, float thmi, float thma) { // just check if x is in range if (0 < thmi) - return FALSE; + return false; if (0 > thma) - return FALSE; + return false; } else { @@ -1686,9 +1688,9 @@ float trace_hits_box_1d(float end, float thmi, float thma) trace_hits_box_a0 = max(trace_hits_box_a0, min(thmi / end, thma / end)); trace_hits_box_a1 = min(trace_hits_box_a1, max(thmi / end, thma / end)); if (trace_hits_box_a0 > trace_hits_box_a1) - return FALSE; + return false; } - return TRUE; + return true; } float trace_hits_box(vector start, vector end, vector thmi, vector thma) @@ -1701,14 +1703,14 @@ float trace_hits_box(vector start, vector end, vector thmi, vector thma) trace_hits_box_a0 = 0; trace_hits_box_a1 = 1; - if (!trace_hits_box_1d(end_x, thmi_x, thma_x)) - return FALSE; - if (!trace_hits_box_1d(end_y, thmi_y, thma_y)) - return FALSE; - if (!trace_hits_box_1d(end_z, thmi_z, thma_z)) - return FALSE; + if (!trace_hits_box_1d(end.x, thmi.x, thma.x)) + return false; + if (!trace_hits_box_1d(end.y, thmi.y, thma.y)) + return false; + if (!trace_hits_box_1d(end.z, thmi.z, thma.z)) + return false; - return TRUE; + return true; } float tracebox_hits_box(vector start, vector mi, vector ma, vector end, vector thmi, vector thma) @@ -1757,10 +1759,12 @@ void W_Crylink_Dequeue(entity e); float WarpZone_Projectile_Touch_ImpactFilter_Callback() { if(SUB_OwnerCheck()) - return TRUE; + return true; if(SUB_NoImpactCheck()) { - if(self.classname == "grapplinghook") + if(self.classname == "nade") + return false; // no checks here + else if(self.classname == "grapplinghook") RemoveGrapplingHook(self.realowner); else if(self.classname == "spike") { @@ -1769,11 +1773,11 @@ float WarpZone_Projectile_Touch_ImpactFilter_Callback() } else remove(self); - return TRUE; + return true; } if(trace_ent && trace_ent.solid > SOLID_TRIGGER) UpdateCSQCProjectile(self); - return FALSE; + return false; } #define PROJECTILE_TOUCH if(WarpZone_Projectile_Touch()) return @@ -1843,14 +1847,14 @@ float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, f for (i = 0; i < attempts; ++i) { - start_x = org_x + random() * delta_x; - start_y = org_y + random() * delta_y; - start_z = org_z + random() * delta_z; + start_x = org.x + random() * delta.x; + start_y = org.y + random() * delta.y; + start_z = org.z + random() * delta.z; // rule 1: start inside world bounds, and outside // solid, and don't start from somewhere where you can // fall down to evil - tracebox(start, e.mins, e.maxs, start - '0 0 1' * delta_z, MOVE_NORMAL, e); + tracebox(start, e.mins, e.maxs, start - '0 0 1' * delta.z, MOVE_NORMAL, e); if (trace_fraction >= 1) continue; if (trace_startsolid) @@ -1861,7 +1865,7 @@ float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, f continue; // rule 2: if we are too high, lower the point - if (trace_fraction * delta_z > maxaboveground) + if (trace_fraction * delta.z > maxaboveground) start = trace_endpos + '0 0 1' * maxaboveground; enddown = trace_endpos; @@ -1870,19 +1874,19 @@ float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, f // the map should have a convex outside hull. // these can be traceLINES as we already verified the starting box mstart = start + 0.5 * (e.mins + e.maxs); - traceline(mstart, mstart + '1 0 0' * delta_x, MOVE_NORMAL, e); + traceline(mstart, mstart + '1 0 0' * delta.x, MOVE_NORMAL, e); if (trace_fraction >= 1 || trace_dphittexturename == "common/caulk") continue; - traceline(mstart, mstart - '1 0 0' * delta_x, MOVE_NORMAL, e); + traceline(mstart, mstart - '1 0 0' * delta.x, MOVE_NORMAL, e); if (trace_fraction >= 1 || trace_dphittexturename == "common/caulk") continue; - traceline(mstart, mstart + '0 1 0' * delta_y, MOVE_NORMAL, e); + traceline(mstart, mstart + '0 1 0' * delta.y, MOVE_NORMAL, e); if (trace_fraction >= 1 || trace_dphittexturename == "common/caulk") continue; - traceline(mstart, mstart - '0 1 0' * delta_y, MOVE_NORMAL, e); + traceline(mstart, mstart - '0 1 0' * delta.y, MOVE_NORMAL, e); if (trace_fraction >= 1 || trace_dphittexturename == "common/caulk") continue; - traceline(mstart, mstart + '0 0 1' * delta_z, MOVE_NORMAL, e); + traceline(mstart, mstart + '0 0 1' * delta.z, MOVE_NORMAL, e); if (trace_fraction >= 1 || trace_dphittexturename == "common/caulk") continue; @@ -1902,9 +1906,9 @@ float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, f } // find a random vector to "look at" - end_x = org_x + random() * delta_x; - end_y = org_y + random() * delta_y; - end_z = org_z + random() * delta_z; + end_x = org.x + random() * delta.x; + end_y = org.y + random() * delta.y; + end_z = org.z + random() * delta.z; end = start + normalize(end - start) * vlen(delta); // rule 4: start TO end must not be too short @@ -1932,10 +1936,10 @@ float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, f setorigin(e, start); e.angles = vectoangles(end - start); dprint("Needed ", ftos(i + 1), " attempts\n"); - return TRUE; + return true; } else - return FALSE; + return false; } void write_recordmarker(entity pl, float tstart, float dt) @@ -1958,7 +1962,7 @@ vector shotorg_adjustfromclient(vector vecs, float y_is_right, float allowcenter break; case 4: // left - vecs_y = -vecs_y; + vecs_y = -vecs.y; break; case 1: @@ -1966,7 +1970,7 @@ vector shotorg_adjustfromclient(vector vecs, float y_is_right, float allowcenter { // center vecs_y = 0; - vecs_z -= 2; + vecs.z -= 2; } else { @@ -1979,12 +1983,12 @@ vector shotorg_adjustfromclient(vector vecs, float y_is_right, float allowcenter { // center vecs_y = 0; - vecs_z -= 2; + vecs.z -= 2; } else { // left - vecs_y = -vecs_y; + vecs_y = -vecs.y; } break; } @@ -2001,7 +2005,7 @@ vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float if (visual) { if (autocvar_g_shootfromclient) { vecs = shotorg_adjustfromclient(vecs, y_is_right, (autocvar_g_shootfromclient >= 2), algn); } - else { vecs_y = 0; vecs_z -= 2; } + else { vecs_y = 0; vecs.z -= 2; } } else { @@ -2012,17 +2016,17 @@ vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float else if (autocvar_g_shootfromcenter) { vecs_y = 0; - vecs_z -= 2; + vecs.z -= 2; } else if ((s = autocvar_g_shootfromfixedorigin) != "") { v = stov(s); if (y_is_right) - v_y = -v_y; - if (v_x != 0) - vecs_x = v_x; - vecs_y = v_y; - vecs_z = v_z; + v_y = -v.y; + if (v.x != 0) + vecs_x = v.x; + vecs_y = v.y; + vecs_z = v.z; } else if (autocvar_g_shootfromclient) { @@ -2138,26 +2142,26 @@ float modeleffect_SendEntity(entity to, float sf) WriteShort(MSG_ENTITY, self.modelindex); WriteByte(MSG_ENTITY, self.skin); WriteByte(MSG_ENTITY, self.frame); - WriteCoord(MSG_ENTITY, self.origin_x); - WriteCoord(MSG_ENTITY, self.origin_y); - WriteCoord(MSG_ENTITY, self.origin_z); + WriteCoord(MSG_ENTITY, self.origin.x); + WriteCoord(MSG_ENTITY, self.origin.y); + WriteCoord(MSG_ENTITY, self.origin.z); if(f & 1) { - WriteCoord(MSG_ENTITY, self.velocity_x); - WriteCoord(MSG_ENTITY, self.velocity_y); - WriteCoord(MSG_ENTITY, self.velocity_z); + WriteCoord(MSG_ENTITY, self.velocity.x); + WriteCoord(MSG_ENTITY, self.velocity.y); + WriteCoord(MSG_ENTITY, self.velocity.z); } if(f & 2) { - WriteCoord(MSG_ENTITY, self.angles_x); - WriteCoord(MSG_ENTITY, self.angles_y); - WriteCoord(MSG_ENTITY, self.angles_z); + WriteCoord(MSG_ENTITY, self.angles.x); + WriteCoord(MSG_ENTITY, self.angles.y); + WriteCoord(MSG_ENTITY, self.angles.z); } if(f & 4) { - WriteCoord(MSG_ENTITY, self.avelocity_x); - WriteCoord(MSG_ENTITY, self.avelocity_y); - WriteCoord(MSG_ENTITY, self.avelocity_z); + WriteCoord(MSG_ENTITY, self.avelocity.x); + WriteCoord(MSG_ENTITY, self.avelocity.y); + WriteCoord(MSG_ENTITY, self.avelocity.z); } WriteShort(MSG_ENTITY, self.scale * 256.0); WriteShort(MSG_ENTITY, self.scale2 * 256.0); @@ -2165,7 +2169,7 @@ float modeleffect_SendEntity(entity to, float sf) WriteByte(MSG_ENTITY, self.fade_time * 100.0); WriteByte(MSG_ENTITY, self.alpha * 255.0); - return TRUE; + return true; } void modeleffect_spawn(string m, float s, float f, vector o, vector v, vector ang, vector angv, float s0, float s2, float a, float t1, float t2) @@ -2185,16 +2189,16 @@ void modeleffect_spawn(string m, float s, float f, vector o, vector v, vector an e.fade_time = t2; e.skin = s; if(s0 >= 0) - e.scale = s0 / max6(-e.mins_x, -e.mins_y, -e.mins_z, e.maxs_x, e.maxs_y, e.maxs_z); + e.scale = s0 / max6(-e.mins.x, -e.mins.y, -e.mins.z, e.maxs.x, e.maxs.y, e.maxs.z); else e.scale = -s0; if(s2 >= 0) - e.scale2 = s2 / max6(-e.mins_x, -e.mins_y, -e.mins_z, e.maxs_x, e.maxs_y, e.maxs_z); + e.scale2 = s2 / max6(-e.mins.x, -e.mins.y, -e.mins.z, e.maxs.x, e.maxs.y, e.maxs.z); else e.scale2 = -s2; sz = max(e.scale, e.scale2); setsize(e, e.mins * sz, e.maxs * sz); - Net_LinkEntity(e, FALSE, 0.1, modeleffect_SendEntity); + Net_LinkEntity(e, false, 0.1, modeleffect_SendEntity); } void shockwave_spawn(string m, vector org, float sz, float t1, float t2) @@ -2351,9 +2355,9 @@ float LostMovetypeFollow(entity ent) float isPushable(entity e) { if(e.iscreature) - return TRUE; + return true; if(e.pushable) - return TRUE; + return true; switch(e.classname) { case "body": @@ -2361,11 +2365,11 @@ float isPushable(entity e) case "keepawayball": case "nexball_basketball": case "nexball_football": - return TRUE; + return true; case "bullet": // antilagged bullets can't hit this either - return FALSE; + return false; } if (e.projectiledeathtype) - return TRUE; - return FALSE; + return true; + return false; }