X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcsqcprojectile.qc;h=4d208ebda808341f778f242ba0135d7255bd29d9;hb=02c69da4fd008a0291ebdd8b88129f86b3108e74;hp=fea89005aa980cf3ba4cf3316c453c18f83cc446;hpb=4e5f108197104a556fdbbbdb7b4fb1c03198dc02;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/csqcprojectile.qc b/qcsrc/server/csqcprojectile.qc index fea89005a..4d208ebda 100644 --- a/qcsrc/server/csqcprojectile.qc +++ b/qcsrc/server/csqcprojectile.qc @@ -52,7 +52,7 @@ float CSQCProjectile_SendEntity(entity to, float sf) if(sf & 2) WriteByte(MSG_ENTITY, self.csqcprojectile_type); // TODO maybe put this into sf? - + return 1; } @@ -69,9 +69,9 @@ void CSQCProjectile_Check(entity e) void CSQCProjectile(entity e, float clientanimate, float type, float docull) { Net_LinkEntity(e, docull, 0, CSQCProjectile_SendEntity); - + e.csqcprojectile_clientanimate = clientanimate; - + if(e.movetype == MOVETYPE_TOSS || e.movetype == MOVETYPE_BOUNCE) { if(e.gravity == 0) @@ -80,11 +80,15 @@ void CSQCProjectile(entity e, float clientanimate, float type, float docull) else e.gravity = 0; - e.csqcprojectile_type = type; if(!sound_allowed(MSG_BROADCAST, e)) type |= 0x80; + e.csqcprojectile_type = type; } +// FIXME HACK +float ItemSend(entity to, float sf); +void ItemUpdate(entity item); +// END HACK void UpdateCSQCProjectile(entity e) { if(e.SendEntity == CSQCProjectile_SendEntity) @@ -92,6 +96,12 @@ void UpdateCSQCProjectile(entity e) // send new origin data e.SendFlags |= 0x01; } +// FIXME HACK + else if(e.SendEntity == ItemSend) + { + ItemUpdate(e); + } +// END HACK } void UpdateCSQCProjectileAfterTeleport(entity e)