X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fswamp.qc;h=2ae068d824f648bd3a98c776a708fbd23e1c018a;hb=03f978544a8b13a18cef1c7cc3dbcaba1c3aee4c;hp=8013f3b17e404d8be97a944c4ffa61faa2f2f0dd;hpb=451382be257bcb485a1ada1872bfdf2f18769051;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/trigger/swamp.qc b/qcsrc/common/triggers/trigger/swamp.qc index 8013f3b17..2ae068d82 100644 --- a/qcsrc/common/triggers/trigger/swamp.qc +++ b/qcsrc/common/triggers/trigger/swamp.qc @@ -1,9 +1,9 @@ #if defined(CSQC) #elif defined(MENUQC) #elif defined(SVQC) - #include "../../../dpdefs/progsdefs.qh" + #include "../../../server/_all.qh" #include "../../../warpzonelib/util_server.qh" - #include "../../weapons/weapons.qh" + #include "../../weapons/all.qh" #include "../../../server/defs.qh" #include "../../deathtypes.qh" #endif @@ -21,7 +21,7 @@ .entity swampslug; #ifdef SVQC -void spawnfunc_trigger_swamp(void); +spawnfunc(trigger_swamp); #endif void swamp_touch(void); void swampslug_think(); @@ -38,7 +38,7 @@ void swampslug_think(); * I do it this way becuz there is no "untouch" event. */ void swampslug_think(void) -{ +{SELFPARAM(); //Slowly kill the slug self.health = self.health - 1; @@ -62,7 +62,7 @@ void swampslug_think(void) } void swamp_touch(void) -{ +{SELFPARAM(); // If whatever thats touching the swamp is not a player // or if its a dead player, just dont care abt it. if(!IS_PLAYER(other) || PHYS_DEAD(other)) @@ -95,7 +95,7 @@ void swamp_touch(void) #ifdef SVQC float swamp_send(entity to, float sf) -{ +{SELFPARAM(); WriteByte(MSG_ENTITY, ENT_CLIENT_LADDER); WriteByte(MSG_ENTITY, self.dmg); // can probably get away with using a single byte here @@ -108,7 +108,7 @@ float swamp_send(entity to, float sf) } void swamp_link() -{ +{SELFPARAM(); Net_LinkEntity(self, false, 0, func_ladder_send); } @@ -116,7 +116,7 @@ void swamp_link() Players gettin into the swamp will get slowd down and damaged */ -void spawnfunc_trigger_swamp(void) +spawnfunc(trigger_swamp) { // Init stuff EXACTTRIGGER_INIT; @@ -136,7 +136,7 @@ void spawnfunc_trigger_swamp(void) #elif defined(CSQC) void ent_swamp() -{ +{SELFPARAM(); self.dmg = ReadByte(); self.swamp_slowdown = ReadByte(); self.swamp_interval = ReadByte();