X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fsv_main.qc;h=9d83b00ab42f8159e9c0b41cb3942b2638db9df7;hb=b60641e56c648beebc66d628305fb652dc6db571;hp=40b3d950a082d019fe8cc6e5eb8705abfea89486;hpb=ba0988ca930f50286f8cf3b6c114ebc6584964af;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 40b3d950a..9d83b00ab 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -1,27 +1,31 @@ -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include "../dpdefs/progsdefs.qc" - #include "../dpdefs/dpextensions.qc" - #include "sys-post.qh" - #include "../warpzonelib/common.qh" - #include "../warpzonelib/server.qh" - #include "../common/constants.qh" - #include "../common/util.qh" - #include "../common/weapons/weapons.qh" - #include "weapons/csqcprojectile.qh" - #include "autocvars.qh" - #include "constants.qh" - #include "defs.qh" - #include "../common/deathtypes.qh" - #include "mutators/mutators_include.qh" - #include "vehicles/vehicles_def.qh" - #include "../common/mapinfo.qh" - #include "command/common.qh" - #include "../csqcmodellib/sv_model.qh" - #include "anticheat.qh" - #include "g_hook.qh" -#endif +#include "_all.qh" + +#include "anticheat.qh" +#include "g_hook.qh" +#include "g_world.qh" + +#include "bot/bot.qh" +#include "bot/waypoints.qh" + +#include "command/common.qh" + +#include "mutators/mutators_include.qh" +#include "vehicles/vehicle.qh" +#include "weapons/csqcprojectile.qh" + +#include "../common/constants.qh" +#include "../common/deathtypes.qh" +#include "../common/mapinfo.qh" +#include "../common/util.qh" + +#include "../common/weapons/all.qh" + +#include "../csqcmodellib/sv_model.qh" + +#include "../warpzonelib/common.qh" +#include "../warpzonelib/server.qh" + +.float lastground; void CreatureFrame (void) { @@ -33,9 +37,9 @@ void CreatureFrame (void) { if (self.movetype == MOVETYPE_NOCLIP) { continue; } - float vehic = (self.vehicle_flags & VHF_ISVEHICLE); + float vehic = IS_VEHICLE(self); float projectile = (self.flags & FL_PROJECTILE); - float monster = (self.flags & FL_MONSTER); + float monster = IS_MONSTER(self); if (self.watertype <= CONTENT_WATER && self.waterlevel > 0) // workaround a retarded bug made by id software :P (yes, it's that old of a bug) { @@ -136,6 +140,7 @@ void CreatureFrame (void) if (g_footsteps) if (!gameover) if (self.flags & FL_ONGROUND) + if (!self.crouch) if (velocity_len > autocvar_sv_maxspeed * 0.6) if (!self.deadflag) if (time < self.lastground + 0.2)