X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_porto.qc;h=010a0f8b36546ccf7ad18a47b3460349b3d61a18;hb=fb8a32a3d9c4b0bbe81536a520f910a84a792c7c;hp=55bbc51f8c4bc44624187cabe4fcdba3ddc74cce;hpb=7e522cf57967de54d3fb6c159afaa9b13594c722;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_porto.qc b/qcsrc/server/w_porto.qc index 55bbc51f8c..010a0f8b36 100644 --- a/qcsrc/server/w_porto.qc +++ b/qcsrc/server/w_porto.qc @@ -1,6 +1,7 @@ #ifdef REGISTER_WEAPON REGISTER_WEAPON(PORTO, w_porto, 0, 0, WEP_TYPE_OTHER, 0, "porto" , "porto", "Port-O-Launch"); #else +#ifdef SVQC .entity porto_current; .vector porto_v_angle; // holds "held" view angles .float porto_v_angle_held; @@ -268,10 +269,6 @@ float w_porto(float req) } else if (req == WR_SETUP) weapon_setup(WEP_PORTO); - else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = "did the impossible"; - else if (req == WR_KILLMESSAGE) - w_deathtypestring = "felt # doing the impossible to him"; else if (req == WR_RESETPLAYER) { self.porto_current = world; @@ -279,3 +276,22 @@ float w_porto(float req) return TRUE; }; #endif +#ifdef CSQC +float w_porto(float req) +{ + if(req == WR_IMPACTEFFECT) + { + print("Since when does Porto send DamageInfo?\n"); + } + else if(req == WR_PRECACHE) + { + // nothing to do + } + else if (req == WR_SUICIDEMESSAGE) + w_deathtypestring = "%s did the impossible"; + else if (req == WR_KILLMESSAGE) + w_deathtypestring = "%s felt %s doing the impossible to him"; + return TRUE; +} +#endif +#endif