# Custom weapon problems -1 reply

• 1
• 2

Malinthebeast

Can only get better

50 XP

14th August 2008

139 Posts

#1 10 years ago

Okay afther help givin by Atrocious i managed to sort out the bug problems but now i have some other problems. One is i cant get the descripiton to work, it comes up enc_weapons1_wpn-samurieedge_m1 instead of the description i wrote out for it.

My seconed problem is i can get the custom beretta to fire in 3 round bursts.

Also is it possable to place custom stuff in the world instead of on a trader ?

mr spock

A troo Scotsman!!

50 XP

2nd March 2008

433 Posts

#2 10 years ago

hmm my best guess is a typo in the file so stalker not recognizing as an encyclopedic description P.s if your doin weapons now can i request the kriss super v from O.L for stock

Malinthebeast

Can only get better

50 XP

14th August 2008

139 Posts

#3 10 years ago
mr spock;4522692hmm my best guess is a typo in the file so stalker not recognizing as an encyclopedic description P.s if your doin weapons now can i request the kriss super v from O.L for stock

For what ? you mean in a shop or what ?

mr spock

A troo Scotsman!!

50 XP

2nd March 2008

433 Posts

#4 10 years ago

sid would be nice since i'm in cordon and for some reason there are wondering bloodsuckers so im afraid to leave cordon without desent protection. You no what i'm just going to make a request thread before i hijack this thread.

Abandonator

Darth Taxi

50 XP

15th April 2008

9,500 Posts

#5 10 years ago
Also is it possable to place custom stuff in the world instead of on a trader ?

that's possible, you have to spawn it through a script then,

Supernatur4L

Resident Stalker

50 XP

23rd July 2008

615 Posts

#6 10 years ago
abandonator;4522740that's possible, you have to spawn it through a script then,

You can also stick a piece of code in the bind_stalker.script and get it upon loading straight into your inventory if you actually want to give it to yourself right away, if you do want to spawn it as a "quest item" or such its a different story.

Malinthebeast

Can only get better

50 XP

14th August 2008

139 Posts

#7 10 years ago
Supernatur4L;4522895You can also stick a piece of code in the bind_stalker.script and get it upon loading straight into your inventory if you actually want to give it to yourself right away, if you do want to spawn it as a "quest item" or such its a different story.

What i would like is for the custom weapon to be placed in the Zone like all the custom weapons in OL, like how you find the Saig12 in Agropom you dont buy it from sid or barkeep but you find it. And thats how i would like my custom weapon placed in the game.

Also about my 2 problems in the first post here are the custom weapon...stuff so if you know how to get the descripiton to work then kind of re write it in your post.

Spoiler:
[wpn_samurieedge_m1]:wpn_beretta $spawn = "weapons\wpn-beretta" description = enc_weapons1_wpn-samurieedge_m1 inv_name = Samurie Edge inv_name_short = Samurie Edge cost = 25 fire_modes = 3 ammo_limit = 300 ammo_current = 300 ammo_mag_size = 16 ammo_class = ammo_9x19_fmj, ammo_9x18_fmj sprint_allowed = true misfire_probability = 0.09 condition_shot_dec = 0.0001 hit_power = 0.72, 0.77, 0.82, 0.92 hit_impulse = 200 fire_distance = 20000000000 bullet_speed = 20000000000 rpm = 700 scope_zoom_factor = 50.0 fire_dispersion_base = 0.050 Spoiler: The samurai edge is a modified Beretta 92FS, which the famous Joseph Kendo himself designed and produced. It has a much faster rate of fire and whole lot more stopping power than an average 9mm handgun. The Samurai Edge is rare with only three functional models in the world its a miracle that one is here in the Zone, maybe the other two can be found somewhere in the dark corners of this mad world.samurieedge beretta Supernatur4L Resident Stalker 50 XP 23rd July 2008 0 Uploads 615 Posts 0 Threads #8 10 years ago Malinthebeast;4522963What i would like is for the custom weapon to be placed in the Zone like all the custom weapons in OL, like how you find the Saig12 in Agropom you dont buy it from sid or barkeep but you find it. And thats how i would like my custom weapon placed in the game. Also about my 2 problems in the first post here are the custom weapon...stuff so if you know how to get the descripiton to work then kind of re write it in your post. Spoiler: [wpn_samurieedge_m1]:wpn_beretta$spawn = "weapons\wpn-beretta" description = enc_weapons1_wpn-samurieedge_m1 inv_name = Samurie Edge inv_name_short = Samurie Edge cost = 25 fire_modes = 3 ammo_limit = 300 ammo_current = 300 ammo_mag_size = 16 ammo_class = ammo_9x19_fmj, ammo_9x18_fmj sprint_allowed = true misfire_probability = 0.09 condition_shot_dec = 0.0001 hit_power = 0.72, 0.77, 0.82, 0.92 hit_impulse = 200 fire_distance = 20000000000 bullet_speed = 20000000000 rpm = 700 scope_zoom_factor = 50.0 fire_dispersion_base = 0.050
Spoiler:
The samurai edge is a modified Beretta 92FS, which the famous Joseph Kendo himself designed and produced. It has a much faster rate of fire and whole lot more stopping power than an average 9mm handgun. The Samurai Edge is rare with only three functional models in the world its a miracle that one is here in the Zone, maybe the other two can be found somewhere in the dark corners of this mad world.samurieedge beretta

Ok looking at this you got the descriptions mixed up

inv_name is an internal tag although it can be the same as inv_name_short

inv_name_short should be the same as your encylopedia entry in string_table_enc_weapons.xml

So if you want "Samurie Edge" to appear when you click on the weapon the code should look like this

Samurie Edge Beretta

and inv_name_short to be equal to wpn-samurieedge_m1 and i would make the inv_name to be the same for more organization. The description part looks correct though, you might have had errors before or you stuck it in the wrong file. You may have to also add it to encyclopedia_weapons.xml

As for your burst problem i dont think every gun can be made to shoot every mode. Like you cant get an rpg to shoot burst. It may have something to do with animation but your code for the burst looks ok. You may want to try fire_modes = 1, 3. Your RPM is pretty high so the delay between single shots should be minimum.

Lord Pariah

50 XP

10th June 2008

304 Posts

#9 10 years ago

ok first I'll start with this My seconed problem is i can get the custom beretta to fire in 3 round bursts.

well thats because {i think} you havethe wrong weapons class: the default one for baretta is class = WP_PM change this to class = WP_AK74

see if that works for you.

description = enc_weapons1_wpn-samurieedge_m1 I think this wont work because of the enc_weapons1_ u have. try removing it and see if that works

inv_name = Samurie Edge inv_name_short = Samurie Edge

You probably havn't noticed this yet but that wont come out right because of the space after samurie it will come out as SamurieEdge it wont work with _ either u will see that on your game screen as Samurie_Edge instead of Samurie Edge. put this in: inv_name = wpn-beretta_m1 inv_name_short = wpn-beretta_m1

then open string_table_enc_weapons under gamedata\config\text\eng

and add this at the bottom just above the last

Beretta 92FS Samurai edge

this is a long name and may not fit in the box on your game screen {you know close to the ammo counter}, it will still work though. If u want u can add a short desc that will fit by adding a new section just like the one above but make into Beretta 92FS SE and change inv_name_short = wpn-beretta_m1 to inv_name_short = wpn-beretta_m1s

ok thats should be that.

Supernatur4L

Resident Stalker

50 XP

23rd July 2008

615 Posts

#10 10 years ago

Lord Pariah;4523514ok first I'll start with this My seconed problem is i can get the custom beretta to fire in 3 round bursts.

well thats because {i think} you havethe wrong weapons class: the default one for baretta is class = WP_PM change this to class = WP_AK74

see if that works for you.

description = enc_weapons1_wpn-samurieedge_m1 I think this wont work because of the enc_weapons1_ u have. try removing it and see if that works

inv_name = Samurie Edge inv_name_short = Samurie Edge

You probably havn't noticed this yet but that wont come out right because of the space after samurie it will come out as SamurieEdge it wont work with _ either because u will see that. put this in: inv_name = wpn-beretta_m1 inv_name_short = wpn-beretta_m1

then open string_table_enc_weapons under gamedata\config\text\eng

and add this at the bottom just above the last

Beretta 92FS Samurai edge

this is a long name and may not fix in the box on your game screen, it will still work though. If u want u can add a short desc that will fit by adding a new section just like the one above but make into and change inv_name_short = wpn-beretta_m1 to inv_name_short = wpn-beretta_m1s

ok thats should be that.

A. I dont know why you had to reiterate what ive said. Although you may be right about the class of the weapon.

B. You are wrong about the enc_weapons1 part. He defined it in the string_table_enc_weapons.xml as that entry and he can call it w/e he wants as long as he got them spelled the same way in both files. But the enc_ entry is the description and the inv_short he defined as the name of the file which will just return a string again defined in the same file.