Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / gun range

Author
Message
TechGirl
16
Years of Service
User Offline
Joined: 22nd May 2008
Location: Cyberspace USA
Posted: 25th Dec 2008 17:29 Edited at: 25th Dec 2008 17:30
Hi, I did a search and found out about how to change the accuracy of a gun, but when I open the gunspec for most guns, I can't find a place where it says "range". I am trying to make a sniper rifle shoot further.

Where would I insert range = ____
(what line of the gunspec?)

and what are the range options....meaning 0-100 or whatever. What number is standard and what number makes the gun shoot further?

Thanks and Happy Holidays!

TechGirl
(Yes, I'm really female!)
TechGirl
16
Years of Service
User Offline
Joined: 22nd May 2008
Location: Cyberspace USA
Posted: 25th Dec 2008 17:41
I just noticed in the gunspec of the sniper rifle two lines:

zoommode = 1
and
zoomaccuracy = 8

Is it the zoomaccuracy I should change? If so, should I go down or up in number for it to be able to shoot an enemy who is further away?

Thanks

TechGirl
(Yes, I'm really female!)
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Dec 2008 10:36
Options can be placed anywhere you like in a gunspec, but I like to keep things clean in my gunspecs so I always keep the options grouped together in "like" categories.

Range will specify how many units the gun should shoot forward. 100 units would be 1 segment forward... so to shoot 20 segments forward would be a range of 2000.


"Zoomaccuracy" is the accuracy your gun will have while it is zoomed in (looking through the scope).
If memory serves correctly, lower accuracy values mean better accuracy. So, a value of 0 for accuracy would mean, it always hits dead center of your crosshair.


The one and only,


TechGirl
16
Years of Service
User Offline
Joined: 22nd May 2008
Location: Cyberspace USA
Posted: 26th Dec 2008 17:31 Edited at: 26th Dec 2008 17:32
Thanks for the info, I'll give it a try.

I changed the accuracy to 0 and the zoomaccuracy to 0 and it still seems to take 3 shots from about 8 "squares" away from an enemy with 100 health to kill them with the sniper rifle (model pack 10).

By the way is there a damage limit? The damage was preset at 200. I changed it to 400 but it didn't seem to do much. Is 200 the max?

My goal is to make it that if the player zooms in on an enemy with the sniper rifle, it will only take one hit to kill them...

Thank!

TechGirl
(Yes, I'm really female!)
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 26th Dec 2008 19:32
Correct me if I'm wrong, but doesn't FPSC decrease the damage bullets do at a longer range?


NVIDIA GeForce 9800 GT FTW
The MOD GODS have smiled upon me!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 26th Dec 2008 19:37 Edited at: 26th Dec 2008 19:39
Quote: "My goal is to make it that if the player zooms in on an enemy with the sniper rifle, it will only take one hit to kill them..."

Are you using the headshots feature for the appear script? (appearwithheadshot.fpi)
That is the easiest way to get one shot kills.

There is a way to adjust the height of the headshots, but I forget what the command is...somebody help refresh my memory because I can't find it searching.

TechGirl
16
Years of Service
User Offline
Joined: 22nd May 2008
Location: Cyberspace USA
Posted: 26th Dec 2008 22:38
I thought of the headshot script, but my game is nearly complete and I have waaaaay too many enemies (scattered between many, many levels) to have to change them all...

Thanks though for the help

TechGirl
(Yes, I'm really female!)
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 27th Dec 2008 18:42 Edited at: 27th Dec 2008 18:42
Quote: "I thought of the headshot script, but my game is nearly complete and I have waaaaay too many enemies (scattered between many, many levels) to have to change them all..."

Then just add the headshot command to normal appear script.
Or you could just change the name of the headshot script to the same name as the other appear.
That way all the characters using that old appear script would be updated without changing their properties.

Login to post a reply

Server time is: 2024-11-24 17:04:49
Your offset time is: 2024-11-24 17:04:49