View Single Post
  #6  
Old 08-20-2005, 08:51 PM
Sacred Shadow Sacred Shadow is offline
Developer
Join Date: Dec 2004
Posts: 129
Sacred Shadow is on a distinguished road
If the player hp'sstring is: client.playerhp this would work.
if (actionserverside) {
if (strequals(#p(0),stats)) {
setstring clientr.deaths,#v(strtofloat(#s(clientr.deaths)) + 1);
with(getplayer(#p(1))) {
setstring clientr.kills,#v(strtofloat(#s(clientr.kills)) + 1);
}
}
}
//#CLIENTSIDE
if (actionWEAPONACTION) {
if (strtofloat(#s(client.playerhp)) == 0) {
triggeraction 0,0,serverside,WEAPON-NAME,stats,#p(1),;
}
}

so the weapon trigger should be something like this:
triggeraction playerx + 1.5 + vecx(playerdir)*2,playery + 1.5 + vecy(playerdir)*2,WEAPONACTION,#a;
when the weapon is fired. I'm not possitive this will work, and I didn't test it offline.
Reply With Quote