mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-26 22:21:15 +00:00
Whoops, had params reversed, giving people frags when they were killed (hahe)
Also add more info to printtrace
This commit is contained in:
parent
ce7cb2fcb0
commit
4de3b170bc
2 changed files with 4 additions and 4 deletions
2
debug.qc
2
debug.qc
|
@ -77,7 +77,7 @@ void (float oneline) printtrace =
|
|||
RPrint ("endpos: " + vtos (trace_endpos) + sep);
|
||||
RPrint ("plane_normal: " + vtos (trace_plane_normal) + sep);
|
||||
RPrint ("plane_dist: " + ftos (trace_plane_dist) + sep);
|
||||
RPrint ("ent: " + (trace_ent ? "yes" : "no") + sep);
|
||||
RPrint ("ent: " + (trace_ent ? trace_ent.classname : "no") + sep);
|
||||
RPrint ("inopen: " + ftos (trace_inopen) + sep);
|
||||
RPrint ("inwater: " + ftos (trace_inwater) + "\n");
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ It's cleaner that way.
|
|||
===========
|
||||
*/
|
||||
|
||||
void(entity atk, entity targ) Give_Frags_Player =
|
||||
void(entity targ, entity atk) Give_Frags_Player =
|
||||
{
|
||||
local float numfrags = 1, chkvamp = 1;
|
||||
|
||||
|
@ -115,7 +115,7 @@ void(entity atk, entity targ) Give_Frags_Player =
|
|||
};
|
||||
|
||||
|
||||
void (entity atk, entity targ) Give_Frags_Monster =
|
||||
void (entity targ, entity atk) Give_Frags_Monster =
|
||||
{
|
||||
if (atk == targ)
|
||||
return; // no neg frags to monsters
|
||||
|
@ -136,7 +136,7 @@ void (entity atk, entity targ) Give_Frags_Monster =
|
|||
Give_Frags_Player(atk, targ);
|
||||
};
|
||||
|
||||
void (entity atk, entity targ) Give_Frags_Building =
|
||||
void (entity targ, entity atk) Give_Frags_Building =
|
||||
{
|
||||
if (atk == targ)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue