Landmines

🚫
Exiled
Joined
Feb 9, 2008
Messages
678
Reaction score
21
Well i tried making my hp med a landmine by adding damage but it doesnt do sht.
 
i changed the ap and hp and damage to -15 and when i walk on it doesnt do any damage and it doesnt dissapear.
 
Upvote 0
i changed the ap and hp and damage to -15 and when i walk on it doesnt do any damage and it doesnt dissapear.

do not mess tat things in ur zitem, use it as a medkit

e.g

look at ur worlditem.xml

normal medkit:
Code:
		<WORLDITEM id="100" name="medikit">
			<TYPE>hp</TYPE>
			<AMOUNT>[COLOR="Red"]10[/COLOR]</AMOUNT>
			<MODELNAME>medikit</MODELNAME>
		</WORLDITEM>

wan landmine? try tis:
Code:
		<WORLDITEM id="100" name="medikit"> [COLOR="Red"]<= Look at zitem.xml[/COLOR]
			<TYPE>hp</TYPE> [COLOR="Red"]<= Change to hp; ap; hpap; bullet[/COLOR]
			<AMOUNT>[COLOR="Red"]-10[/COLOR]</AMOUNT>
			<MODELNAME>medikit</MODELNAME> [COLOR="Red"]<= Mesh name[/COLOR]
		</WORLDITEM>

use ur brain n edit it to watever u wan
 
Upvote 0
i changed the ap and hp and damage to -15 and when i walk on it doesnt do any damage and it doesnt dissapear.

1 dont double post
2 look the post above me he explains the first part
3 you have to put this code also in worlditem.xml else it wont dissapear or heal/hit/w.e

Code:
<AddWorldItemElu name="[b]medikit[/b]">
<AddBaseModel name="[b]medikit[/b]" filename="model/weapon/item/[B]eluname.elu[/B]"/>

edit the fat parts
 
Upvote 0
so for

<TYPE>hp</TYPE> <= Change to hp; ap; hpap; bullet
should look like this?

<TYPE>hp; ap; hpap; bullet</TYPE>

if not post it here.
 
Upvote 0
so for

<TYPE>hp</TYPE> <= Change to hp; ap; hpap; bullet
should look like this?

<TYPE>hp; ap; hpap; bullet</TYPE>

if not post it here.

Lolled !

No no no no and no!

hp = health
ap = armor
hpap = health & armor
bullet = ammo

you type 1 of these 4 between type.

like you want a landmine that dmg 60 hp and 60 ap so u pick up "hpap"
then this will be ur code:
Code:
		<WORLDITEM id="100" name="name-in-zitem.xml">
			<TYPE>hpap</TYPE>
			<AMOUNT>-60</AMOUNT>
			<MODELNAME>the-mesh-name</MODELNAME>
		</WORLDITEM>
 
Upvote 0
Back