-.float silent;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qh"
+ #include "defs.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "autocvars.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+.bool silent;
void Gib_Delete()
{
remove(self);
}
-string species_prefix(float specnum)
+string species_prefix(int specnum)
{
switch(specnum)
{
}
}
-void Gib_setmodel(entity gib, string mdlname, float specnum)
+void Gib_setmodel(entity gib, string mdlname, int specnum)
{
switch(specnum)
{
}
}
-void new_te_bloodshower (float ef, vector org, float explosionspeed, float howmany)
+void new_te_bloodshower (int ef, vector org, float explosionspeed, int howmany)
{
float i, pmod;
pmod = autocvar_cl_particles_quality;
}
}
-void TossGib (string mdlname, vector safeorg, vector org, vector vconst, vector vrand, float specnum, float destroyontouch, float issilent)
+void TossGib (string mdlname, vector safeorg, vector org, vector vconst, vector vrand, int specnum, bool destroyontouch, bool issilent)
{
entity gib;
RubbleLimit("gib", autocvar_cl_gibs_maxcount, Gib_Delete);
}
-void Ent_GibSplash(float isNew)
+void Ent_GibSplash(bool isNew)
{
- float amount, type, specnum;
+ int amount, type, specnum;
vector org, vel;
string specstr;
- float issilent;
+ bool issilent;
string gentle_prefix = "morphed_";
- float c, randomvalue;
+ float randomvalue;
+ int c;
type = ReadByte(); // gibbage type
amount = ReadByte() / 16.0; // gibbage amount