Page 1 of 1

Rifle issue

Posted: Fri Sep 29, 2023 4:33 pm
by Tater
Hey all, I found a great sniper rifle but it allows the player to shoot straight while moving and not crouched. Can anyone tell me what the setting is called that allows that? It's a great rifle except for that and it fires too slow. The firing speed I can fix but I just can't find it in the code where that is set.

Re: Rifle issue

Posted: Sat Sep 30, 2023 4:01 am
by EvilGrins
Tater wrote: Fri Sep 29, 2023 4:33 pmit allows the player to shoot straight while moving and not crouched
You may not be explaining it well, but doesn't that apply to all sniper rifles?

Re: Rifle issue

Posted: Sat Sep 30, 2023 4:21 am
by browndl
I think what he is desiring is the answer to the question, "How can the rifle be made to be inaccurate when firing if the player is moving?" In other words what does he need to change to cause the rifle to only fire accurately if the player is still, and probably more so, motionless and in a crouched position.

Re: Rifle issue

Posted: Sat Sep 30, 2023 6:46 am
by Eternity
Most of ut99 inventory, stock and modded, does not make difference whether player owner is moving, staying still or crouching down. This feature is hardcoded, only few mods out there have this...
One implementation example: 'NWVulcanVIII.Vulcan'.

Re: Rifle issue

Posted: Sat Sep 30, 2023 2:14 pm
by Tater
browndl wrote: Sat Sep 30, 2023 4:21 am I think what he is desiring is the answer to the question, "How can the rifle be made to be inaccurate when firing if the player is moving?" In other words what does he need to change to cause the rifle to only fire accurately if the player is still, and probably more so, motionless and in a crouched position.
Yes this is exactly what I want. I want the rifle to be accurate when crouched or still but if you're moving forward, backward, strafing or your feet aren't on the ground, (jumping), then it shoots very slow and the bullets aren't accurate at all. Just like a "sniper/camper" rifle should be.

I've gone over the script multiple times, compared it to other working rifles and cannot find anywhere. I don't want a "run and gun" rifle.

And EvilGrins, I wish to use the USMCSniperRifle and it shoots straight no matter what you do. I just want it to "act" like one of those "normal" sniper rifles.

Re: Rifle issue

Posted: Tue Oct 03, 2023 5:08 pm
by Tater
I've managed to fix the firing speed and inaccuracy issue on it but, as usual, another issue rears it's ugly head. Now it won't allow you to switch from it. Not to xloc or another gun.