rodrich266 Posted October 11, 2014 Share Posted October 11, 2014 Hey guys, I have been trying to get the combat sniper rifle (PSG-1) to fire full auto. Yet whenever I mod the fire rate in the ways I have read online either nothing happens to the fire rate or I get a crash to my desktop. Here is the code of my weaponinfo.xml : <weapon type="SNIPERRIFLE"> <data slot="SNIPER" firetype="DELAYED_HIT" damagetype="BULLET" group="RIFLE_SNIPER" targetrange="50.0" weaponrange="1500.0" clipsize="10" ammomax="25000" timebetweenshots="133"> <damage base="20" fps="75" networkplayermod="2.0" networkpedmod="1.0"/> <physics force="100.0"/> <reload time="2066" fasttime="2066" crouchtime="2066"/> <aiming accuracy="10.0" accuracyfps="0.0"> <offset x="0.16" y="1.0" z="0.55"/> <crouchedoffset x="0.16" y="1.0" z="0.12"/> <reticule standing="0.6" ducked="0.5" scale="0.05"/> </aiming> <pickup regentime="360000" ammoonstreet="20"/> <controller> <rumble duration="120" intensity="0.3"/> </controller> <flags> <flag>GUN</flag> <flag>CAN_FREE_AIM</flag> <flag>FIRST_PERSON</flag> <flag>ANIM_RELOAD</flag> <flag>ANIM_CROUCH_FIRE</flag> <flag>2HANDED</flag> </flags> </data> <assets model="w_psg1"> <anim group="[email protected]"> <rates firerate="1.2" blindfirerate="1.2"/> </anim> </assets> </weapon> I managed to make it full auto before so I know it's possible but since I re-installed my game I have not been able to pull it off. Any help is appreciated Link to comment Share on other sites More sharing options...
rodrich266 Posted October 12, 2014 Author Share Posted October 12, 2014 I feel very stupid right now, but I just realized I had my fire rate wrong. To anyone who might want an auto sniper in the future, just copy and paste this code in your weaponinfo.xml : <weapon type="SNIPERRIFLE"> <data slot="SNIPER" firetype="DELAYED_HIT" damagetype="BULLET" group="RIFLE_SNIPER" targetrange="50.0" weaponrange="1500.0" clipsize="10" ammomax="25000" timebetweenshots="133"> <damage base="20" fps="75" networkplayermod="2.0" networkpedmod="1.0"/> <physics force="100.0"/> <reload time="2066" fasttime="2066" crouchtime="2066"/> <aiming accuracy="10.0" accuracyfps="0.0"> <offset x="0.16" y="1.0" z="0.55"/> <crouchedoffset x="0.16" y="1.0" z="0.12"/> <reticule standing="0.6" ducked="0.5" scale="0.05"/> </aiming> <pickup regentime="360000" ammoonstreet="20"/> <controller> <rumble duration="120" intensity="0.3"/> </controller> <flags> <flag>GUN</flag> <flag>CAN_FREE_AIM</flag> <flag>FIRST_PERSON</flag> <flag>ANIM_RELOAD</flag> <flag>ANIM_CROUCH_FIRE</flag> <flag>2HANDED</flag> </flags> </data> <assets model="w_psg1"> <anim group="[email protected]"> <rates firerate="2.0" blindfirerate="2.0"/> </anim> </assets> </weapon> If you look closely the only change I made compared to the previous one was to both the firerate and the blindfirerate values. Other changes compared to the original weaponinfo include the addition of the firerate and blindfirerate line and the change of the timebetweenshots value to 133 like the assault rifles. Hope this can help someone in the future. Link to comment Share on other sites More sharing options...
Stevenslender123 Posted May 30, 2016 Share Posted May 30, 2016 (edited) I know it is a bit pointless replying to a 2-yr old topic, but all you have to do is change the anim group from [email protected] to [email protected] Edited May 30, 2016 by Stevenslender123 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now