It's for the shieldhit hook

item(wpn_id, 'dmg').
* 0.5.
player(p, 'weaponmode').
player1zoom = 0 addhook("attack2","_attack2") function _attack2(id,mode) 	if mode==1 then 		player1zoom = 1 	elseif mode==2 then 		player1zoom = 2 	end end addhook("shieldhit","_shieldhit") function _shieldhit(id,source) 	if player1zoom == 1 then 		msg("ah is one") 	elseif player1zoom == 2 then 		msg("oh is two") 	end end addhook("select","_select") function _select(id) 	player1zoom = 0 end