Jump to content

G18 pistol


Recommended Posts

I was wondering if anyone can edit this weaponinfo line so the pistol fires like a mini uzi but only faster?

<weapon type="PISTOL">       <data slot="HANDGUN" firetype="INSTANT_HIT" damagetype="BULLET" group="PISTOL_SMALL" targetrange="45.0" weaponrange="50.0" clipsize="17" ammomax="1500" timebetweenshots="50">           <damage base="25" networkplayermod="3.0" networkpedmod="1.0"/>           <physics force="50.0"/>           <reload time="2000" fasttime="2000" crouchtime="2000"/>           <aiming accuracy="0.5">               <offset         x="0.15" y="1.0" z="0.55"/>               <crouchedoffset x="0.2"  y="1.0" z="0.05"/>               <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>           </flags>       </data>       <assets model="w_glock">           <anim group="gun@handgun" meleegroup1="firearm_core"/>           <effects>               <muzzle fx="muz_pistol_small"/>               <shell fx="weap_ejected_pistol"/>           </effects>       </assets>   </weapon>

i edited time betweenshots down to 50 (was 333) but didnt really seam to have any effect.

Link to comment
https://gtaforums.com/topic/460463-g18-pistol/
Share on other sites

<weapon type="PISTOL">

<data slot="HANDGUN" firetype="INSTANT_HIT" damagetype="BULLET" group="PISTOL_SMALL" targetrange="45.0" weaponrange="50.0" clipsize="17" ammomax="1500" timebetweenshots="0.1">

<damage base="25" networkplayermod="3.0" networkpedmod="1.0"/>

<physics force="50.0"/>

<reload time="2000" fasttime="2000" crouchtime="2000"/>

 

<aiming accuracy="0.5">

<offset x="0.15" y="1.0" z="0.55"/>

<crouchedoffset x="0.2" y="1.0" z="0.05"/>

<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>

</flags>

</data>

 

<assets model="w_glock">

<anim group="gun@handgun" meleegroup1="firearm_core"/>

<rates firerate="3.0" blindfirerate="3.0"/>

 

<effects>

<muzzle fx="muz_pistol_small"/>

<shell fx="weap_ejected_pistol"/>

</effects>

</assets>

</weapon>

 

Add the exact line's i just added in red.

You can set the Rate of Fire (RoF) to whatever you like, but i recommend you go no faster than 3.0 or 3.5.

This can be applied to most weapons except for the RPG, Minigun, Grenades/Molotov's and Melee weapons.

 

Hope this helps,

XTREME0235.

Edited by XTREME0235
Link to comment
https://gtaforums.com/topic/460463-g18-pistol/#findComment-1060151287
Share on other sites

ok, doesnt work like i wanted it to tounge2.gif , when falling the pistol fires like i want it to(u can empty the clip in about 3 secs sly.gif ) but when shooting like normal fires like a normal pistol(but nikos got some quick fingers) might have to edit the anim so it shoots right and make the clip size bigger it might replace the uzi since cops will have G18s once this is done

Edited by cimpaq
Link to comment
https://gtaforums.com/topic/460463-g18-pistol/#findComment-1060151384
Share on other sites

Idk if gtaforums has some length for dubble posting sinces its been about 2 days so idk, but anyways, since the pistol slot isnt working out as i thought, im gona make this replace an SMG slot and ahve it use UZI anims and see if that helps

 

 

EDIT: Finaly got it working, just needed to change the anim

Edited by cimpaq
Link to comment
https://gtaforums.com/topic/460463-g18-pistol/#findComment-1060153646
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.