making a new gun -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 11 years ago

hi guys can any one tell me how to make a new gun ive bin thinking about? i call it the blood spray gun..bit daft but maybe usefull for people? i dont like the pistol so i can change the bullet decals into blood decals can any one give me tips on how to do this? i got this idea from the waffle gun, but blood instead.:p




Dafama2k7

I follow teh Moo!

50 XP

28th September 2006

0 Uploads

622 Posts

0 Threads

#2 11 years ago

You can copy the weapon_pistol.def and weapon_pistol.script files for example and change what you want.

You have to rename this files to the name of your new gun, for example weapon_bloodgun.def and weapon_bloodgun.script

Also you have edit the player.def file and add your weapon_bloodgun in the weapons section like this...:

/***********************************************************************

player_base

shared by player_doommarine and player_doommarine_mp

***********************************************************************/

entityDef player_base { "spawnclass" "idPlayer" "scriptobject" "player"

"hud" "guis/hud.gui" "mphud" "guis/mphud.gui" "cursor" "guis/cursor.gui"

"blink_min" "2.5" "blink_max" "8.0"

// weapon slots "def_weapon0" "weapon_fists" "weapon0_best" "0" // whether weapon should be chosen when out of ammo "weapon0_cycle" "1" // whether weapon should be selected when using next/prev weapon "weapon0_toggle" "0" // whether selecting weapon twice switches between current and previous weapons "weapon0_allowempty" "1" // whether you can select the weapon when it's out of ammo

"def_weapon1" "weapon_pistol" "weapon1_best" "1" "weapon1_cycle" "1" "weapon1_toggle" "0" "weapon1_allowempty" "1"

"def_weapon2" "weapon_shotgun" "weapon2_best" "1" "weapon2_cycle" "1" "weapon2_toggle" "0" "weapon2_allowempty" "1"

"def_weapon3" "weapon_machinegun" "weapon3_best" "1" "weapon3_cycle" "1" "weapon3_toggle" "0" "weapon3_allowempty" "1"

"def_weapon4" "weapon_chaingun" "weapon4_best" "1" "weapon4_cycle" "1" "weapon4_toggle" "0" "weapon4_allowempty" "1"

"def_weapon5" "weapon_handgrenade" "weapon5_best" "0" "weapon5_cycle" "1" "weapon5_toggle" "0" "weapon5_allowempty" "0"

"def_weapon6" "weapon_plasmagun" "weapon6_best" "1" "weapon6_cycle" "1" "weapon6_toggle" "0" "weapon6_allowempty" "1"

"def_weapon7" "weapon_rocketlauncher" "weapon7_best" "0" "weapon7_cycle" "1" "weapon7_toggle" "0" "weapon7_allowempty" "1"

"def_weapon8" "weapon_bfg" "weapon8_best" "0" "weapon8_cycle" "1" "weapon8_toggle" "0" "weapon8_allowempty" "1"

"def_weapon9" "weapon_soulcube" "weapon9_best" "0" "weapon9_cycle" "1" "weapon9_toggle" "1" "weapon9_allowempty" "1"

"def_weapon10" "weapon_chainsaw" "weapon10_best" "0" "weapon10_cycle" "1" "weapon10_toggle" "0" "weapon10_allowempty" "1"

"def_weapon11" "weapon_flashlight" "weapon11_best" "0" "weapon11_cycle" "1" "weapon11_toggle" "1" "weapon11_allowempty" "1"

"def_weapon12" "weapon_pda" "weapon12_best" "0" "weapon12_cycle" "0" "weapon12_toggle" "0" "weapon12_allowempty" "1"

"def_weapon13" "" "weapon13_best" "0" "weapon13_cycle" "0" "weapon13_toggle" "0" "weapon13_allowempty" "0"

"def_weapon14" "" "weapon14_best" "0" "weapon14_cycle" "0" "weapon14_toggle" "0" "weapon14_allowempty" "0"

"def_weapon15" "weapon_gravitygun" "weapon15_best" "0" "weapon15_cycle" "1" "weapon15_toggle" "0" "weapon15_allowempty" "1"

"max_ammo_shells" "320" "max_ammo_bullets" "360" "max_ammo_rockets" "96" "max_ammo_cells" "500" "max_ammo_grenades" "50" "max_ammo_souls" "5" // number of kills required to charge the soul cube "max_ammo_bfg" "32" "max_ammo_clip" "600" "max_ammo_belt" "600"

// default weapons // seperate multiple weapons with commas (no spaces). // NOTE: default ammo must be specified explicitly. "weapon" "weapon_fists,weapon_pistol,weapon_flashlight,weapon_pda,weapon_gravitygun" "weapon_nightmare" "weapon_fists,weapon_pistol,weapon_flashlight,weapon_pda,weapon_soulcube,weapon_gravitygun" "current_weapon" "0"

Put "def_weapon16" to be "weapon_bloodgun" and allthe other lines like the ones already made in the file.

You can learn more on www.doom3world.org and www.iddev.net

Also in the "weapons" section in the last , you can add the weapon_bloodgun for make your weapon available from the first !!!