Skip to content

Commit

Permalink
Fix error with scrag projectile (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjelliott authored Jan 19, 2025
1 parent 1a119a4 commit 930d689
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions qc/weapons.qc
Original file line number Diff line number Diff line change
Expand Up @@ -1067,19 +1067,28 @@ void() spike_touch =
else
{

WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
if (self.owner.snd_hit)
{
sound (self, CHAN_WEAPON, self.owner.snd_hit, 1, ATTN_STATIC); //dumptruck_ds
WriteByte(MSG_BROADCAST, TE_GUNSHOT);
sound (self, CHAN_WEAPON, self.owner.snd_hit, 1, ATTN_STATIC); //dumptruck_ds
WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
WriteByte(MSG_BROADCAST, TE_GUNSHOT);
}

else if (self.classname == "wizspike")
{
WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
WriteByte (MSG_BROADCAST, TE_WIZSPIKE);
}
else if (self.classname == "knightspike")
{
WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
WriteByte (MSG_BROADCAST, TE_KNIGHTSPIKE);
else
}
else
{
WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
WriteByte (MSG_BROADCAST, TE_SPIKE);
}
WriteCoord (MSG_BROADCAST, self.origin_x);
WriteCoord (MSG_BROADCAST, self.origin_y);
WriteCoord (MSG_BROADCAST, self.origin_z);
Expand Down

0 comments on commit 930d689

Please sign in to comment.