Product Chat / Distance of ememy soldiers RPG's and rifles needs increased

Author
Message
happymancub
9
Years of Service
User Offline
Joined: 26th May 2015
Location:
Posted: 12th Jul 2015 15:00
As a player I can take an RPG and shoot it halfway across the map, but the enemy has to be close to me to fire. Same for the Ak-47, about same distance as pistols. I have tried for days to increase the range and I can get the enemy to see me and turn towards me at greater distance but they never fire their RPG/rifle. If the game is hard coded to not allow them to fire farther away then this needs fixed. if we want a realistic game we need the enemy to be able to do what the human player can.

Example, I have a snipe rifle that can shoot anything at great distance, so the RPG guy should be able to launch at me without having to run up closer to fire, makes game to easy or the sniper rifle unusable due to no challenge.
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Jul 2015 15:20
These are changeable in the AI scripts, and weapons gunspec.txt file.

They can be customized as you see fit, or you can rewrite the scripts and add your own behaviors.

The only hard coded range right now is 3000, most AI will become inactive to save processes. But if you set alwayactive to yes, they will be active at all times. It would be your range setting and the script that would stop them, then only.

Duplicate the script, change it name, and make some changes inside it. Assign the script to the character and see how it acts for you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

happymancub
9
Years of Service
User Offline
Joined: 26th May 2015
Location:
Posted: 12th Jul 2015 16:27
Hi Pirate Myke,

We tried that, edited the files to increase range, we had always active =yes and edited several areas of the enemy detecting us. We can get them to see us at great range but they always run up to you and at about pistol distance they fire the RPG.

Try it yourself, it does not work. The hard coding overrides anything we try.

PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Jul 2015 20:05
try the rpg guard - he can fire 1500 distance away (but not further)
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 12th Jul 2015 20:15
once you have it set in the script, then set the range in the properties of the AI using the script.
That should work.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 12th Jul 2015 22:57
A lot of issues with the base AI scripts. You pretty much always have to edit them yourself. Maybe one day or year the stock scripts will get fixed to make for better game play for those that cannot script.
i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
happymancub
9
Years of Service
User Offline
Joined: 26th May 2015
Location:
Posted: 13th Jul 2015 14:57 Edited at: 13th Jul 2015 15:00
Pirate Myke, you are saying to add the range in the properties of the Character using the script. So that would be the FPE file I assume since there is no choice for it in the properties? Can you tell me a line I need to add to FPE perhaps that would show the distance?
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 13th Jul 2015 16:33
No the initial range in the AI scripts are 600 to 800 units, allowing the properties panel to be used up to that value by default.

If in the AI script you increase those ranges, then the range in the properties panel of the AI would be able to have a greater distance set there.

Example. In all the zombie scripts I have, I have duplicated them and renamed them. Setting the ranges in there to 6000.
Now when I set a zombie, I change it to my script and add the view range in the zombie properties to be set to 2000 or 3000 for ones I want to notice me and attack from a greater distance. But I can also set them to 600 or so, for attacking around a corner in a hallway also, without having to change the scripts again.

Hope that makes more sense.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

happymancub
9
Years of Service
User Offline
Joined: 26th May 2015
Location:
Posted: 13th Jul 2015 17:47
Hi Pirate Myke, I appreciate all your responses but I guess I'm not making myself clear and I apologize

I can do exactly what you are doing with melee but you need to make an enemy shoot their weapon(gun) from great range. We are on the same page and have done exactly what you are telling us(me and my friend) but the problem is not with the enemy seeing us and coming after us, the problem is they do not fire their weapon until close enough to be a pistol shot. That's fine with pistols but the RPG and Rifle need to be fired from long range by the enemy.

I am asking you to try it on a new flat level, place a RPG guy 4000 meters away from you and you will see he can be set in the script to detect you at great range but he will not fire his weapon, he will just run towards you then fire when he is a lot closer. If you try this you will see I'm right
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 14th Jul 2015 01:06
I see this variable at the top of the AI_solder_RPG.lua file.
RPG_CLOSEST_TO_PLAYER = 500

Wondering if that is the hardcoded distance. Change that to 1000 and save it and reload the level and test and see if they fire at you from twice the distance.

I will look into this more.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

happymancub
9
Years of Service
User Offline
Joined: 26th May 2015
Location:
Posted: 14th Jul 2015 13:48
ried that several times, set it to 10000 and even 1 no change.

Thanks for looking into it. Game just feels Blah with guns right now.
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 14th Jul 2015 13:57
I agree. Let me see if I can figure it out.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Housetroll
9
Years of Service
User Offline
Joined: 12th Jun 2015
Location:
Posted: 19th Jul 2015 19:02
I'm having the same issue. Is it hard-coded in the game engine or something? The closest a range weapon soldier will fire their weapon is pretty much pistol range. Any news on a fix or work-around?
PM
SoUlFaThEr
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 24th Jul 2015 16:05
I completely agree this is rather irritating to have apparently changable values in the scripts that are, in actuality, hardcoded

I disagree that the devs should have better scripts in the base release however as this would raise the margin between a well tweaked game and a game not tweaked at all. Those who can at least change numbers in scripts and understand what they affect will just give their players a better experience and therefore a better chance at success.


PM
SoUlFaThEr
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 24th Jul 2015 17:17
I accidentally wrote my findings on this issue in this forum posts:

https://forum.game-guru.com/thread/212696

The jist being that the plrvisible or plrvis scripts are missing. If I am right then theres engine fall back code. I think if we create that particular script, we would be able to adjust the distance at which the AI stops and "fireweapon".

I this is true and works, then we can create different versions of that instance too and add them to globals and the few ai scripots that call the plrvisible function.
PM
Housetroll
9
Years of Service
User Offline
Joined: 12th Jun 2015
Location:
Posted: 24th Jul 2015 23:13
Well, what I tried was a blank script that basically turns to face player and fires weapon no matter how far away or how close - still only fires at close range. Even changing the fpe file to give them range and visibility of 5000 or 10000 doesn't make a difference. Changed weapon ranges as well and no change.
PM
SoUlFaThEr
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 25th Jul 2015 09:41
Sounds like we have to wait for the procudure. LUA script hooks are number 2 on the voting list and hopefully this one is included in that change. if making a plrvisible script doesnt work that is, since it seems everything else has been attempoted at this point
PM

Login to post a reply

Server time is: 2025-04-21 22:42:55
Your offset time is: 2025-04-21 22:42:55