examples
laser = dmg npc 30% for shot
m4a1 = dmg npc 3% for shot
machet = dmg npc for 10% for shot
FN9000 = dmg npc for 6% for shot1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
npc_force_1 = true
addhook("objectdamage","_objectdamage")
function _objectdamage(id_o,dmg,id_pl)
	if npc_force_1 then
		if id_o > 0 then
			if object(id_o,"type") == 30 then
				if object(id_o,"player") == 1 then -- Zumbie --
					npc_force_1 = false
					parse("damageobject "..id_o.." 3 "..id_pl)
					npc_force_1 = true
				return 1
				end
			end
		end
	end
end
I tested
did not work: #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
npc_force_1 = true
addhook("objectdamage","_objectdamage")
function _objectdamage(id_o,dmg,id_pl)
	if npc_force_1 then
		if id_o > 0 then
			if player(id,"weapontype") == 45 then
				if object(id_o,"type") == 30 then
					if object(id_o,"player") == 1 then -- Zumbie --
						npc_force_1 = false
						parse("damageobject "..id_o.." 3 "..id_pl)
						npc_force_1 = true
					return 1
					end
				end
			end
		end
	end
end
plz help ??, thanks '-'
NPC - weapon dmg
1 
Offline
Alistaire