evilsquirrel said:You've slain commoner.
should be...
You've slain a commoner.
probably other bugs like this one...WOrth
{
const BARMOR_REPLACE_BODYPARTS ""
const BARMOR_PROTECTION_AREA head
const IS_HELM 1
const ARMOR_CAT_OFS 1
const EXPAR 0
}
#include items/armor_base
{ game_spawn
wearable 1 head
if game.serverside
if $get(ent_owner,isalive)
callexternal $get(ent_owner,id) set_stun_prot STUN_PROTECTION
local STUN_PROT $get(ent_owner,scriptvar,IMMUNE_STUN)
callevent 0.1 display_stun_info
}
{ [server] game_wear
callexternal $get(ent_owner,id) set_stun_prot STUN_PROTECTION
callevent 0.1 display_stun_info //delay so armor name appears before the stun% report
}
{ [server] display_stun_info
if game.serverside
local STUN_PROT $get(ent_owner,scriptvar,IMMUNE_STUN)
//dbg display_stun_info STUN_PROT
stradd STUN_PROT "%"
if ( STUN_PROT > 0 ) gplayermessage ent_owner Your stun resistance is now STUN_PROT
if ( STUN_PROT == 0 ) dplayermessage ent_owner You now have no stun resistance
}
{ game_drop
callexternal $get(ent_owner,id) set_stun_prot 0
local STUN_PROT $get(ent_owner,scriptvar,IMMUNE_STUN)
callevent 0.1 display_stun_info
}
{ game_putinpack
callexternal $get(ent_owner,id) set_stun_prot 0
local STUN_PROT $get(ent_owner,scriptvar,IMMUNE_STUN)
callevent 0.1 display_stun_info
}