Sniper riffle - rate of fire modifier

Do you search a certain mutator, mod, skin, map, everything else?
batonix
Novice
Posts: 4
Joined: Wed Apr 22, 2020 2:06 pm

Sniper riffle - rate of fire modifier

Post by batonix » Sat Jun 20, 2020 11:14 am

I am looking for mod/mutator which will allow me to change sniper riffle rate of fire.

Anyone came across it before?

User avatar
OjitroC
Godlike
Posts: 2528
Joined: Sat Sep 12, 2015 8:46 pm

Re: Sniper riffle - rate of fire modifier

Post by OjitroC » Sat Jun 20, 2020 11:38 am

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

batonix
Novice
Posts: 4
Joined: Wed Apr 22, 2020 2:06 pm

Re: Sniper riffle - rate of fire modifier

Post by batonix » Sat Jun 20, 2020 4:42 pm

I have seen that post but that's not what I am looking for hence why I set up this topic.

BloodyBastard
Novice
Posts: 9
Joined: Wed Apr 24, 2019 7:19 am

Re: Sniper riffle - rate of fire modifier

Post by BloodyBastard » Sat Jun 20, 2020 5:05 pm

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

SC]-[WARTZ_{HoF}
Adept
Posts: 425
Joined: Tue Feb 21, 2012 7:29 pm

Re: Sniper riffle - rate of fire modifier

Post by SC]-[WARTZ_{HoF} » Sat Jun 20, 2020 8:32 pm

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

User avatar
sektor2111
Godlike
Posts: 5513
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Sniper riffle - rate of fire modifier

Post by sektor2111 » Sun Jun 21, 2020 7:58 am

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

Higor
Godlike
Posts: 1832
Joined: Sun Mar 04, 2012 6:47 pm

Re: Sniper riffle - rate of fire modifier

Post by Higor » 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.
ImageImage
Image unreal://23.111.157.138:7777
Image unreal://46.228.199.205:7788

User avatar
Chamberly
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

Post by Chamberly » Mon Jun 22, 2020 4:03 am

I gotta ask are you looking for sniper rifle like the ones on DOU/CoN/SOP/OMA/EST/etc sniper servers?
Image
Image
Image Edit: Why does my sig not work anymore?

User avatar
sektor2111
Godlike
Posts: 5513
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Sniper riffle - rate of fire modifier

Post by sektor2111 » Mon Jun 22, 2020 4:51 am

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)
Oopsy, interesting stuff...

batonix
Novice
Posts: 4
Joined: Wed Apr 22, 2020 2:06 pm

Re: Sniper riffle - rate of fire modifier

Post by batonix » Mon Jun 22, 2020 11:07 am

Chamberly wrote:
Mon Jun 22, 2020 4:03 am
I gotta ask are you looking for sniper rifle like the ones on DOU/CoN/SOP/OMA/EST/etc sniper servers?
No, I just would like to reduce the rate of fire of the default sniper in the game (without installing newnet)

batonix
Novice
Posts: 4
Joined: Wed Apr 22, 2020 2:06 pm

Re: Sniper riffle - rate of fire modifier

Post by batonix » Mon Jun 22, 2020 11:10 am

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)
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.
Thanks for this, my coding knowledge is near 0 but I will ask someone to look at that :)

User avatar
Chamberly
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

Post by Chamberly » Mon Jun 22, 2020 8:04 pm

batonix wrote:
Mon Jun 22, 2020 11:07 am
Chamberly wrote:
Mon Jun 22, 2020 4:03 am
I gotta ask are you looking for sniper rifle like the ones on DOU/CoN/SOP/OMA/EST/etc sniper servers?
No, I just would like to reduce the rate of fire of the default sniper in the game (without installing newnet)
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.
Image
Image
Image Edit: Why does my sig not work anymore?

User avatar
Barbie
Godlike
Posts: 2153
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Sniper riffle - rate of fire modifier

Post by Barbie » Mon Jun 22, 2020 8:09 pm

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
Show

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