View Full Version : Range and damage of UT sniper rifle
2nd Aug 2001, 09:17 PM
Howdy all. I noticed the other day that the UT sniper rifle seems to have a max range. I was playing ctf in ctf chasm and was shooting at opponents (or rather trying to) all the way across the level. I noticed I could kill bots almost all the way across, but after a certain range My rounds no longer reached them. Does anybody know a way to increase the range or locate the integer values that dictates the range? I have made a dragunov sniper rifle model and am using slightly altered sniper rifle code. I alos wish to make a model .50 cal barrett rifle which should have an extremely large max range. Also on this topic, why is the damage inflicted on enemies for non headshots 66, when in the uscript the value was 45 for the sniper rifle? Is there a scaling factor in there? I would like to lower this value so I can make a full auto "zoomable" sniper rifle/submachine gun that is not completely unbalanced (note I will lower the value of the headshot damage).
2nd Aug 2001, 11:16 PM
hope this helps a bit. Not sure on the damage thing
function TraceFire( float Accuracy )
local vector HitLocation, HitNormal, StartTrace, EndTrace, X,Y,Z;
local actor Other;
local Pawn PawnOwner;
PawnOwner = Pawn(Owner);
StartTrace = Owner.Location + PawnOwner.Eyeheight * Z;
AdjustedAim = PawnOwner.AdjustAim(1000000, StartTrace, 2*AimError, False, False);
X = vector(AdjustedAim);
EndTrace = StartTrace + 10000 * X; <-- the 10000 is the max distance I think
Other = PawnOwner.TraceShot(HitLocation,HitNormal,EndTrace,StartTrace);
ProcessTraceHit(Other, HitLocation, HitNormal, X,Y,Z);
3rd Aug 2001, 07:27 AM
Kangus is right there, thats the range.
About the damage, damage in the code is what would be if the game was played in "Classic" mod, but ut defaults in , umm mega, or execisve, or something like that, so Damage in the code is something like x 1.1 or 1.2.
3rd Aug 2001, 11:53 AM
Thank you oh so much. this will help greatly especially since I missed several opportunities the other day to take the neighbor kids to school with ultra long range headshots. and now I need to know where to locate the value for max zoom. I know this has to do with FOV, however where do I change the desired FOV value that I saw mentioned in the code, and if I change this will it affect all weapons that zoom and use modified versions of ut's sniper rifle code? I want to lessen the zoom capability on one rifle, and greatly increase it on another. Thanks again for the help on range and damage.
3rd Aug 2001, 12:01 PM
function AltFire( float Value )
PlayerPawn(Owner).DesiredFOV = 90;
PlayerPawn(Owner).DesiredFOV = 15;
PlayerPawn(Owner).DesiredFOV = 45;
3rd Aug 2001, 01:31 PM
Thanks a lot Postal. it works wonderfully I now have dragunov sniper rifle that shoots 20000 units and zooms in to long range thank you. When I release this in a weapons pack sometime I will definitely mention you both thanks. meowcat
3rd Aug 2001, 01:41 PM
Why couldnt you have asked something hard?
3rd Aug 2001, 03:00 PM
Everyone's gotta start somewhere. Remeber my first questions? Neither do I, but I bet they were simpler than this.
EDIT: I remember one of 'em now. I wanted to know how to make the GasBagBelch last a shorter amount of time before exploding. Hehe, that was pretty simple.
11th Aug 2001, 06:39 AM
Mine was how to change the automag's clip size
11th Aug 2001, 11:52 AM
you mean you weren't born knowing unreal script?
11th Aug 2001, 01:55 PM
As far as I know, most people are born with not much by way of knowledge.
11th Aug 2001, 03:16 PM
Well I was born with knowledge of projectile fire, traces and weaps that used thoses were like greek to me, while at that time when I asked that question, I knew the stinger like the back of my hand, the automag was something completle foren to me
11th Aug 2001, 06:05 PM
How did I know you'd say something like that?...
11th Aug 2001, 06:31 PM
*Sets mind control device to setting 3*
Because I put the thought in your mind.
11th Aug 2001, 09:32 PM
Again with your predictable responses...
11th Aug 2001, 09:52 PM
Hmm wonder why you would say that?
11th Aug 2001, 11:50 PM
Because your previous response was predictable.
12th Aug 2001, 06:26 AM
True, true, but I prefer the term dependable.
12th Aug 2001, 02:09 PM
I would call that inaccurate.
12th Aug 2001, 03:41 PM
Then how would you explain it? In ten thousand words or less please.
12th Aug 2001, 05:32 PM
Predictable, as I have already said.
13th Aug 2001, 03:08 AM
On any of the other forums, this would be called spam or postcount boosting...
13th Aug 2001, 03:21 AM
What's "********* boosting"? And this isn't any of the other forums, as I'm sure you have noticed. Is spam just spiced ham? I don't actually know.
13th Aug 2001, 03:25 AM
post - count boosting. Eg increasing your post count so people thing you are smart.
13th Aug 2001, 03:36 AM
Well that's a bunch of bull feces! We was just having ourselves a discussion! A problem is that?
13th Aug 2001, 02:41 PM
Good point dragonfly, expect all of you to be baned by the end of the day.
Just joking, but I do like the idea.
13th Aug 2001, 03:32 PM
Which idea, the banning, or the posting a lot to make you look smart?
13th Aug 2001, 05:21 PM
I post alot in any event
13th Aug 2001, 05:53 PM
I post more! So there! I win! Can I have my waffle, now?
13th Aug 2001, 06:29 PM
No waffle for you, but I may have a K-Bar soon.
13th Aug 2001, 06:49 PM
What be a K-Bar? I wanna waffle!
13th Aug 2001, 07:12 PM
K-Bar is a peice of steel with some leather and wood on it.
13th Aug 2001, 08:24 PM
Oh. Why might I care if your may soon have one?
14th Aug 2001, 02:44 PM
Postal do you think a slash or stab would be appropriate in this case? The slash would seem to me to finish the argument faster no?
14th Aug 2001, 03:12 PM
Argument? We're not having an argument, we're having a discussion!
14th Aug 2001, 04:17 PM
should you use a 5 inch blade, I would suggest a stab into the heart
14th Aug 2001, 04:41 PM
That would be incredibly painful.
14th Aug 2001, 06:13 PM
I dont think it would be painfull for long
14th Aug 2001, 09:29 PM
It would long enough.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.