Credits to Mr.A for showing me a few things.
What will you learn?
-How to put scopes on your guns
-How to put no recoils on your guns
-Fast reload
-Misc (Shootwhilejumping,shootunderwater,etc)
What will you need?
-DeSCR
-PFF Utility
Lets get started.
Open your PFF utility, click on file, now click on Open file go into your BHD folder and ope nthe file "Localres.pff".
Once it has loaded, you can look and find your Ammo.def and Weapon.def files
Find them and Extrack them to your desktop(or where ever) Now open your DeSCR program and click on Decrypt, find your weapon.def file and your ammo.def file and Decrypt them.
Now that both of your files are Decrypt lets begin.
Lets work on the Car15 Gun.
To make your car15 have no recoil Open your ammo.def file search for
- Code:
-
ammo AMMO_CAR15_556MM
once you found it you will see this part
- Code:
-
ammo AMMO_CAR15_556MM
bullet_mass 1
max_age 1.5
arm_age 0
velocity 990
error 0
drag 1
recoil 5 //*****
scar_type 1
frndlyTrcrID 4405
foeTrcrID 4406
impact_damage 51
flag muzzle1
ai_launch GS_CAR15AI
Mf_Light 100
kztype rounds_kz_C4
kz_damage 0
kz_minradius 2.5
kz_maxradius 2.5
In the **** (Recoil 5) change the 5 to a 0 and click File and save it. this will give your no recoil.
Next will put some Misc and a scope on your gun?
Lets begin.
*Note* Here are some flags you can use (misc)
- Code:
-
flags possible flags(case insensitive):
Scoped // the weapon supports a scoped view
Underwater // works underwater
AutoLob // tells the computer to compute the lob angle based on target point
NoClipsNoDraw // if no more clips, dont draw 1st person
Burst // fires in burst mode (always three)
NotDropable // weapon cannot be dropped
Emplaced // this is an emplaced weapon
Auto // weapon is fully automatic fire
norangecheck // the range check for anti cheat is ignored
Sighted // the weapon supports a sighted view
Primary // this weapon is considered a primary weapon class
Secondary // this weapon is considered a secondary weapon class
Sniper // this weapon is considered a sniper weapon...get extra score if you use it successfully
OkWhileJumping // this weapon may be fired while jumping
Open your weapon.def file Search for
- Code:
-
WPN_CAR15AUTONow under that it will give you this.
- Code:
-
weapon "WPN_CAR15AUTO"
category 3
rank 0
statid 300
charfilter cqb
charfilter medic
charfilter gunner
loadout_selectable 1
loadout_subclasses 1
loadout_menu_icon car15.tga
loadout_menu_textid WEAP_SHORT_CAR15
loadout_menu_ttdesc WEAP_DESC_CAR15
weapon_class primary
round_type "AMMO_CAR15_556MM"
clipsize 30
startrounds 300
error_hip 0
error_up 0
targetpitchmax 22
targetpitchmin 50
targetyawrange 120
ammoclass CLASS_556MM 1
clipslot 1
launchuserpoint bullet
flags auto //*****
flags Sighted run_anim 1
sights car15aim.tga 112 0 889 768 blend
sights car15gls.tga 112 0 896 774 multiplyat
sights reddot1.tga 496 368 527 399 add scale
In the ***** This is where you would put your flags at!.
So lets say you want flags shootunderwater in there, Would look like this
flags auto
flags Sighted
flags Underwater
This will make your Car15Auto shoot underwater.
Want to put a scope on your Car15? see below to find out how!
Put this under flags underwater
- Code:
-
flags Sniper
flags Scoped
scope_max_zero 12 100 200
scope_max_mag 42
This should give you your scope on your gun.
Ok Wanna make your gun so it only takes less then 1 sec to reload?
Scroll down a little bit till you see this.
- Code:
-
action "recoil"
delayend 2
anim anim_wpn_recoil
function wpn_std_recoil
particle Effect_CAR15Cas
particleuserpoint bcasing
end
action "reload"
delaystart 100
delayend auto
soundset GF_HKG3A_RL
anim anim_wpn_reload
function wpn_std_reload
end
You want to make it to look like this.
- Code:
-
action "recoil"
// delayend 2
// anim anim_wpn_recoil
// function wpn_std_recoil
particle Effect_CAR15Cas
particleuserpoint bcasing
end
action "reload"
// delaystart 100
// delayend auto
// soundset GF_HKG3A_RL
// anim anim_wpn_reload
function wpn_std_reload
end
Put the "//" in the right place shown above and now your gun will reload Faster then ever!
Now that your finish. Open your Descr again click on Encrypt file both of your files and Encrypt them.
Now take those 2 Encrypt files and place them in your bhd folder, but for these to work with the game, make a dfbhd.exe shortcut to your desktop right click on it goto properties and in the Target area type /d at the end like this
"C:\Program Files\NovaLogic\Delta Force Black Hawk Down\dfbhd.exe" /d (make sure there in a space between the address and the /d
Now open yor game and play!
****Download PFF and Descr in the sticky post at delta-h.net****
****Credits Mr.A for showing me how to code fast reload****
****Credits Massacre for showing me the /d part****
There is more stuff you can do, but maybe ill make another Tut someother day. but for now learn this
By the way, this is for people that are trying to learn how to Code in your Def files.
Enjoy.
-Lodpwn.