git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6308 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-23 14:06:18 +00:00
parent d3e7c6268c
commit fafd13894e
+5 -1
View File
@@ -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;
}