#include "csqcprojectile.qh"
+#include <server/defs.qh>
+#include <server/miscfunctions.qh>
#include <common/t_items.qh>
#include "../command/common.qh"
#include <common/constants.qh>
-#include <common/weapons/all.qh>
+#include <common/net_linked.qh>
+#include <common/weapons/_all.qh>
.float csqcprojectile_type;
WriteByte(MSG_ENTITY, fr);
}
- WriteByte(MSG_ENTITY, this.realowner.team);
+ if(teamplay)
+ WriteByte(MSG_ENTITY, this.realowner.team);
+ else
+ WriteByte(MSG_ENTITY, this.realowner.clientcolors); // NOTE: doesn't work on non-clients
}
if(sf & 2)
e.csqcprojectile_clientanimate = clientanimate;
- if(e.movetype == MOVETYPE_TOSS || e.movetype == MOVETYPE_BOUNCE)
+ if(e.move_movetype == MOVETYPE_TOSS || e.move_movetype == MOVETYPE_BOUNCE)
{
if(e.gravity == 0)
e.gravity = 1;