How to install:
Download the gfx here.
And add the following code into file \mods\Stranded II\sys\items_tools.inf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
### Pen Knife
id=121
name=Pen Knife
group=tool
icon=gfx\penknife.bmp
model=gfx\penknife.3ds
scale=0.15
behaviour=blade
mat=metal
weight=100
damage=4
info=this portable knife is great for cutting small plants and bushes
healthchange=0
script=start
	on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//+ Bonus Damage on Bushes
		if (compare_material($tmp,$tmp2,"bush")==1){
			damage $tmp,$tmp2,6;
		}
		freevar $tmp;
		freevar $tmp2;
	}
		//+ Bonus Damage on Leaves and Hemp
		if (compare_material($tmp,$tmp2,"leaf")==1){
			damage $tmp,$tmp2,8;
		}
		freevar $tmp;
		freevar $tmp2;
	}
script=end
NOTE: If ID 121 is already occupied, you'll have to use another ID.
Edit: Changed the ID to 121 to be compatible with the latest version of StrandedII, which uses ID 120 already.
edited 8×, last 13.06.09 07:40:52 pm
Item: Pen Knife
1 
Offline
Re: Item: Pen Knife