Jump to content

Equip both taser and pistol


bucky16

Recommended Posts

I'm here to show an interesting modification to LCPDFR. (if this is the wrong section, please move this.)

 

Do you hate having to always equip your taser when you need to use it? Well, this little modification will make it so you can have both your taser and your pistol equipped at the same time and will enable you to switch between them quickly. Here's how to do it:

 

1.) (This is not required, but highly recommended. If you're not manually installing or have already done, skip to 5.) Install the taser manually. Add the taser model files to the game manually by extracting the taser model files from the models.img in the LCPDFR folder and placing them into the game's weapons.img file using OpenIV or SparkIV.

 

2.) Open the gta.dat file, located in /common/data folder with notepad and after this line:

IDE platform:/DATA/MAPS/PROPS/vegetation/Int_veg.IDE

Add the following line:

IDE platform:/LCPDFR/DEFINITIONS.IDE 

Save the file.

 

3.) Open the WeaponInfo.xml located in /common/data with notepad and add the following:

<weapon type="UNUSED0">
		<data slot="HANDGUN" firetype="INSTANT_HIT" damagetype="FIRE" group="PISTOL_SMALL" targetrange="8.0" weaponrange="8.0" clipsize="1" ammomax="1500" timebetweenshots="333">
			<damage base="0" networkplayermod="3.0" networkpedmod="1.0"/>
			<physics force="0.0"/>
			<reload time="2000" fasttime="2000" crouchtime="2000"/>

			<aiming accuracy="0.25">
				<offset         x="0.0" y="1.0" z="0.0"/>
				<crouchedoffset x="0.0"  y="1.0" z="0.0"/>
				<reticule standing="0.65" ducked="0.55" scale="0.3"/>
			</aiming>

			<pickup regentime="120000" ammoonstreet="30"/>

			<controller>
				<rumble duration="110" intensity="0.02"/>
			</controller>

			<flags>
				<flag>GUN</flag>
				<flag>CAN_AIM</flag>
				<flag>CAN_FREE_AIM</flag>
				<flag>ANIM_RELOAD</flag>
				<flag>ANIM_CROUCH_FIRE</flag>
				<flag>SILENCED</flag>
			</flags>
		</data>

		<assets model="lcpdfr_taser">
			<anim group="gun@handgun" meleegroup1="firearm_core"/>
			<effects>
				<muzzle fx="ambient_flies_sparked"/>
			</effects>
		</assets>
	</weapon>

Be sure it comes AFTER the opening <weaponinfo version="1"> tag and before the closing </weaponinfo> tag. Save the file.

 

3.) Load up the game and go on duty. (To do this quickly after loading, press Alt+P and then press ~ and type "forceduty" (without quotes)) Equip your taser as normal and ensure it is working properly.

 

4.) If it works, open the WeaponInfo.xml like above (If not manually installing, open the file located in the /pc/lcpdfr folder) and where it says:

data slot="HANDGUN"

Change that to:

data slot="SHOTGUN"

Save the file.

 

Now to use the taser, after going on duty, equip the taser as normal and after it has been equipped, switch to your shotgun weapon slot and there it is. You will now be able to switch quickly between the two. To use a shotgun if you have one, unequip the taser. If you enjoyed this or found this helpful, please hit that rep button. Thanks.

Link to comment
Share on other sites

How do you add files to the weapons.img using SparkIV? I can't figure it out, please help me!

You can, but I recommend using OpenIV as it is simple as dragging and dropping the files to add them to the image files.

Link to comment
Share on other sites

You can, but I recommend using OpenIV as it is simple as dragging and dropping the files to add them to the image files.

How? how to add/extract new files using SparkIV?

^You can't. 

But the author of this post said that you can. Try reading the post again with the SParkIV  and OpenIV text

sig.jpg
Link to comment
Share on other sites

How do you add files to the weapons.img using SparkIV? I can't figure it out, please help me!

It worked for me. 

Auto install LCPD:FR 1.0 then do this

Game Directory ----> PC Folder ----> LCPDFR Folder ----> Open "WeaponInfo.XML" with Notepad or Notepad ++ ----> Change slot="HANDGUN" to slot="SHOTGUN"

Then go ingame and press "T" and it will now take place of the shotgun so you can use both

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...