Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Zelenium

#1
SWBF1 Modding / Sniper range
April 11, 2024, 05:41:23 PM
Hey!
I decided to increase the range of the snipers, however I was unsuccessful.
The thing is that a standard sniper rifle can shoot at 300 meters. However, AI snipers use a maximum of 60-70 range and this is clearly exaggerated figures.
I wanted to fix this and did the following:

Lua:
SetMemoryPoolSize("Aimer", 999)
SetDefenderSnipeRange(200)
SetAttackerSnipeRange(200)


Weapon:
MinRange        = "32"
OptimalRange        = "100"
MaxRange        = "200"
LockOnRange        = "0.0"
LockTime         = "0.0"
LockOnAngle        = "1.0"


Ordnance:
LifeSpan         = "0.10"
Velocity         = "2000.0"


But really it doesn't work. Snipers don't even try to shoot from long range.
I think the AI has a limitation written in the executable file.
Probably it can be around 50 meters (maybe 48), but I don't rly know.

Is there someone who can help me with this question? Maybe I've made a mistake somewhere?