Fixed the mirror system not working.

This commit is contained in:
Steve Dudenhoeffer 2007-06-12 15:59:10 +00:00
parent add02dc55e
commit 7690f1a099
2 changed files with 3 additions and 2 deletions

View File

@ -149,7 +149,7 @@ static void read_mirror(char *input)
if (strcmp(dest, CurrentModName)==0) if (strcmp(dest, CurrentModName)==0)
{ {
snprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", dest); snprintf(CurrentModName, sizeof(CurrentModName)-1, "%s", source);
} }
} }

View File

@ -106,7 +106,8 @@ enum Ham
/** /**
* Description: Usually called whenever an entity gets attacked by a hitscan (such as a gun) weapon. * Description: Usually called whenever an entity gets attacked by a hitscan (such as a gun) weapon.
* Use the get/set tr2 natives in fakemeta to handle the traceresult data. * Use the get/set tr2 natives in fakemeta to handle the traceresult data.
* Do not use a handle of 0 as a traceresult in execution, use get_tr_handle(0) instead. * Do not use a handle of 0 as a traceresult in execution, use create_tr2() from Fakemeta
* to pass a custom handle instead. (Don't forget to free the handle when you're done.)
* Forward params: function(this, idattacker, Float:damage, Float:direction[3], traceresult, damagebits) * Forward params: function(this, idattacker, Float:damage, Float:direction[3], traceresult, damagebits)
* Return type: None. * Return type: None.
* Execute params: ExecuteHam(Ham_TraceAttack, this, idattacker, Float:damage, Float:direction[3], tracehandle, damagebits); * Execute params: ExecuteHam(Ham_TraceAttack, this, idattacker, Float:damage, Float:direction[3], tracehandle, damagebits);