Sniper riffle - rate of fire modifier
-
- Novice
- Posts: 4
- Joined: Wed Apr 22, 2020 2:06 pm
Sniper riffle - rate of fire modifier
I am looking for mod/mutator which will allow me to change sniper riffle rate of fire.
Anyone came across it before?
Anyone came across it before?
-
- Godlike
- Posts: 3350
- Joined: Sat Sep 12, 2015 8:46 pm
Re: Sniper riffle - rate of fire modifier
HI - welcome!
I'm pretty sure this has been discussed before - have you tried a search of this forum?
You could try using the mutator referred to in this thread viewtopic.php?f=8&t=13872
I'm pretty sure this has been discussed before - have you tried a search of this forum?
You could try using the mutator referred to in this thread viewtopic.php?f=8&t=13872
-
- Novice
- Posts: 4
- Joined: Wed Apr 22, 2020 2:06 pm
Re: Sniper riffle - rate of fire modifier
I have seen that post but that's not what I am looking for hence why I set up this topic.
-
- Novice
- Posts: 9
- Joined: Wed Apr 24, 2019 7:19 am
Re: Sniper riffle - rate of fire modifier
Open UnrealEd.exe and search for the Sniper Rifle Weapon (Actors > Inventory > TournamentWeapon > Sniper Rifle) I think and double click on it.
Search for this line:
FiringSpeed=1.800000
Change it to the double and see if it has an effect. When you finish, compile the script and go into the game and test.
Keep in mind that by doing this, you will not be able to play online, so I recommend to make a backup of Botpack.u
Search for this line:
FiringSpeed=1.800000
Change it to the double and see if it has an effect. When you finish, compile the script and go into the game and test.
Keep in mind that by doing this, you will not be able to play online, so I recommend to make a backup of Botpack.u
-
- Adept
- Posts: 426
- Joined: Tue Feb 21, 2012 7:29 pm
Re: Sniper riffle - rate of fire modifier
I've adjusted the code for some of my rifle mods before so I can change the firing rate on the fly in my game servers. Unfortunately there is no mutator I know of that does this standalone. I highly doubt you will ever see a mutator that can change fire rates of different weapons. If you want something that changes these settings it would have to be hardcoded within the weapon itself.
-
- Godlike
- Posts: 6198
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Sniper riffle - rate of fire modifier
I recommend leaving stock files alone if you don't know what you do. If Fire-Rate is hard-coded it needs recompiled and this will be found by ACE as a screwed up file if won't return a mismatch version error. It's more easy to subclass sniper into another weapon and replace snipers from map using a simple arena mutator. I don't get why these practices to screw stock files and then "Omg, ACE kicks me out."
-
- Godlike
- Posts: 1847
- Joined: Sun Mar 04, 2012 6:47 pm
Re: Sniper riffle - rate of fire modifier
I coded this item for Siege:
https://github.com/CacoFFF/SiegeIV-UT99 ... Berserk.uc
You'll be able to find the resources in that repository as well (in case you want the actual item)
Otherwise you can take a look at the code to get an idea of how I modify weapon's fire rate without modifying weapons at all.
https://github.com/CacoFFF/SiegeIV-UT99 ... Berserk.uc
You'll be able to find the resources in that repository as well (in case you want the actual item)
Otherwise you can take a look at the code to get an idea of how I modify weapon's fire rate without modifying weapons at all.
-
- Godlike
- Posts: 1963
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
Re: Sniper riffle - rate of fire modifier
I gotta ask are you looking for sniper rifle like the ones on DOU/CoN/SOP/OMA/EST/etc sniper servers?
-
- Godlike
- Posts: 6198
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Sniper riffle - rate of fire modifier
Oopsy, interesting stuff...Higor wrote: ↑Mon Jun 22, 2020 3:55 am I coded this item for Siege:
https://github.com/CacoFFF/SiegeIV-UT99 ... Berserk.uc
You'll be able to find the resources in that repository as well (in case you want the actual item)
-
- Novice
- Posts: 4
- Joined: Wed Apr 22, 2020 2:06 pm
Re: Sniper riffle - rate of fire modifier
No, I just would like to reduce the rate of fire of the default sniper in the game (without installing newnet)
-
- Novice
- Posts: 4
- Joined: Wed Apr 22, 2020 2:06 pm
Re: Sniper riffle - rate of fire modifier
Thanks for this, my coding knowledge is near 0 but I will ask someone to look at thatHigor wrote: ↑Mon Jun 22, 2020 3:55 am I coded this item for Siege:
https://github.com/CacoFFF/SiegeIV-UT99 ... Berserk.uc
You'll be able to find the resources in that repository as well (in case you want the actual item)
Otherwise you can take a look at the code to get an idea of how I modify weapon's fire rate without modifying weapons at all.

-
- Godlike
- Posts: 1963
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
Re: Sniper riffle - rate of fire modifier
Well you can make a mutator arena subclass of the original sniper rifle and the speed can be changed to lower. Only touching the speed for fire rate, I think that's all it is needed as animation frame won't be an issue.
-
- Godlike
- Posts: 2555
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Sniper riffle - rate of fire modifier
Solving this starts with a modified Rifle. Here I have one with adjustable fire rate, which works fine using locally, but unfortunately the animations stay at the same as Botpack SniperRifle when using online. Any hints?
Spoiler
Code: Select all
class SBSniperRifle expands SniperRifle;
var(SniperRifle) float FireRate;
replication
{
// Things the server should send to the client.
reliable if((Role==ROLE_Authority))
FireRate;
}
function ChangedWeapon() {
Super.ChangedWeapon();
FireAdjust = FireRate;
}
event PostBeginPlay() {
super.PostBeginPlay();
if (FireRate <= 0)
{
FireRate = default.FireRate;
Warn("invalid FireRate <= 0 of" @ self @ "reset to" @ FireRate);
}
}
function inventory SpawnCopy( pawn Other ) {
local inventory Result;
result = super.SpawnCopy(Other);
if (SBSniperRifle(Result) != None)
SBSniperRifle(Result).FireRate = FireRate;
}
defaultproperties {
// 1 means normal firerate as in Botpack.SniperRifle, higher values makes the rifle shoot faster, values between 0 and 1 slower.
FireRate=3
}
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett