onReload
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6308 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -764,7 +764,11 @@ bool weapon::reload()
|
||||
bool local = (player1 == owner);
|
||||
if(owner->type==ENT_BOT) audiomgr.playsound(info.reload, owner);
|
||||
else audiomgr.playsoundc(info.reload, NULL, local ? SP_HIGH : SP_NORMAL);
|
||||
if(local) addmsg(SV_RELOAD, "ri2", lastmillis, owner->weaponsel->type);
|
||||
if(local)
|
||||
{
|
||||
addmsg(SV_RELOAD, "ri2", lastmillis, owner->weaponsel->type);
|
||||
if(identexists("onReload")) execute("onReload");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user