Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

How to make the NPC very very very hard?

The general place to discuss MOD''ing Freelancer!

Post Thu Oct 04, 2007 8:50 am

How to make the NPC very very very hard?

hi anybody here
i have completed a beta version of my mod. but on server, my players say the npc like a stupid ducks. they mean the NPC is very weak. so i think i need to change the NPC's AI and make it strong and *give they some colour to see see*.
So, i try to edit the pilots_population.ini, but no matter how i try to set the pilots_population.ini, the NPC still not strong.
I cant found a AI Tutorial to tell me how to set [EvadeDodgeBlock,[BuzzHeadTowardBlock,[TrailBlock,[DamageReactionBlock,[FormationBlock and [JobBlock. maybe i havent found the tutorial(i try to search "TrailBlock" but only found 2 topics, and only few info i need), anybody who can you tell me where is the ai tutorial or give me an example of AI set for a very hardest ace pilot?




PS.i have mount a misslie in loadout for a npc, it works fine in encounters, but the npc not shot me with misslie in mission, how do i make npc using misslie with player in MP mission?

Post Thu Oct 04, 2007 9:09 am

>PS.i have mount a misslie in loadout for a npc, it works fine in encounters, but the npc not shot me with misslie in mission, how do i make npc using misslie with player in MP mission?

Very good question. I dont think this has been resolved yet.
Some have claimed they have, but I wont believe it till I see it.

Post Fri Oct 05, 2007 1:44 am

I didn't need to mess with the blocks, just used pilot_military_ace, pilot_outcast_ace and gave them better-equipped ships with all weapons mounted.

Increase your weapon damage and leave all the ship shields as they are, our players got ripped to shreds! lol

Roleplay: - the art of self-deceipt!

Post Fri Oct 05, 2007 7:15 am

You want an NPC to shot more human like well try this. This will make it hard and you can leave everything else alone. Add the other suggestions if want it harder.

[GunBlock
nickname = story_gun_fighter_a
gun_fire_interval_time = 0
gun_fire_interval_variance_percent = 0.500000
gun_fire_burst_interval_time = 3
gun_fire_burst_interval_variance_percent = 0.200000
gun_fire_no_burst_interval_time = 2.000000
gun_fire_accuracy_cone_angle = 3
gun_fire_accuracy_power = 1.250000
gun_fire_accuracy_power_npc = 4.000000
gun_range_threshold = 1.100000
gun_target_point_switch_time = 1.000000
fire_style = multiple
auto_turret_interval_time = 0
auto_turret_burst_interval_time = 3
auto_turret_no_burst_interval_time = 1.500000
auto_turret_burst_interval_variance_percent = 0.400000
gun_range_threshold_variance_percent = 0.150000

Change to this For every [GunBlock nickname = story_gun xxxxxxxx


gun_fire_interval_time = 0.000000
gun_fire_interval_variance_percent = 0.500000
gun_fire_burst_interval_time = 3.000000
gun_fire_burst_interval_variance_percent = 0.200000
gun_fire_no_burst_interval_time = 2.000000
gun_fire_accuracy_cone_angle = 3.000000
gun_fire_accuracy_power = 8.500000
gun_fire_accuracy_power_npc = 8.500000
gun_range_threshold = 1.100000
gun_target_point_switch_time = 1.000000
fire_style = multiple
auto_turret_interval_time = 0.000000
auto_turret_burst_interval_time = 1.000000
auto_turret_no_burst_interval_time = 0.500000
auto_turret_burst_interval_variance_percent = 0.200000
gun_range_threshold_variance_percent = 0.100000

Now if that is to hard just change these 2 entries to a lower number utill you have what you want.
gun_fire_accuracy_power = 8.500000 <---lower to 7.5 or 6.5 etc
gun_fire_accuracy_power_npc = 8.500000 <---lower to 7.5 or 6.5 etc

“SISU”
(Pronounced: siss-sue)
(Meaning)
Guts, Tenacity, Steadfastness, Courage, and an Indomitable will to Succeed, and Survive.


Edited by - FlyByU on 10/5/2007 8:16:48 AM

Post Fri Oct 05, 2007 11:26 pm

flybyu, mind telling us what these lines mean, please?

Post Sat Oct 06, 2007 6:32 am

How accurate the npc's gunfire is. I believe it is the percentage of shots that hit you. Therefore, 8.5 would be something like 85% of the time. That is 8 out of 10 shots will hit your ship. I maybe wrong on what they mean but I know what it does. That is makes the NPC's nail you a lot more.

Post Sat Oct 06, 2007 6:54 am

I meant what do all these lines mean

No, really, what do they mean?

Post Sat Oct 06, 2007 10:02 am

im sorry,the bad network to cause me cant visit TLR 3 days. some website been timeout timeout timeout again.

@w0dk4
it's stronge is the npc shot other npcs by missile in mission. I saw the mission enemy kill my reinforcements by misslie and mine and torpedo but they shot me by gun or mine. They really be good for me.

@StarTrader
i give they all nomad gun, maybe problem is the 2 x thrusters, max speed is 318.

@flybyu
Thanks flybyu, let me test the code.

PS.
whats the
gun_fire_interval_variance_percent = 0.500000
and
gun_fire_burst_interval_variance_percent = 0.200000
?

PS2. lol
i have new problem. when i driving a battleship like liberty dreadnought to mission zone,(about 1.2 K from Mission Waypoint) npc will spawn and stop there without movement. thats very bad because i add lot of long range weapon. if player use that weapon, they can kill any hard npc without any damage. How to solve this problem?

Post Sun Oct 07, 2007 1:26 pm

@Vital
I'm not sure myself what they all mean/do I think it might be on the forums somewhere but it's been awhile since I checked into this subject as I found what I wanted.

@nieckey
Let me know how that works for you.



Edited by - FlyByU on 10/7/2007 2:27:00 PM

Post Sun Oct 07, 2007 6:54 pm

flybyu, i have try the difficulty, thats really hard now, i change it to 10 for battleship fleet , thanks for your share.



the PS. question, i have replace the pilots_population.ini form 1.0, and the npc come and attack me now. maybe i make some mistake on pilots AI, i will check it.


Thanks to all

Post Mon Oct 08, 2007 6:10 am


flybyu, i have try the difficulty, thats really hard now, i change it to 10 for battleship fleet , thanks for your share.


You are welcome and 10 on Battleships will indeed make them very tuff.

“SISU”
(Pronounced: siss-sue)
(Meaning)
Guts, Tenacity, Steadfastness, Courage, and an Indomitable will to Succeed, and Survive.

Post Thu Oct 11, 2007 4:48 am

So 10 means that every shot is on target?

Post Thu Oct 11, 2007 5:07 am

Not sure never went up that high before. 8.500000 is about as high as I went. at 8.500000 they pound you pretty good. Just play with it for awhile and see what you come up with.

“SISU”
(Pronounced: siss-sue)
(Meaning)
Guts, Tenacity, Steadfastness, Courage, and an Indomitable will to Succeed, and Survive.

Post Thu Oct 11, 2007 9:17 pm

im back, and question about server crash

i have test the following GunBlock set but the server will crash

gun_fire_interval_time = 0
gun_fire_interval_variance_percent = 0.000000
gun_fire_burst_interval_time = 10
gun_fire_burst_interval_variance_percent = 10.000000
gun_fire_no_burst_interval_time = 0.000000
gun_fire_accuracy_cone_angle = 2
gun_fire_accuracy_power = 10.000000
gun_range_threshold = 1.100000
gun_target_point_switch_time = 0.250000
fire_style = multiple
auto_turret_interval_time = 0
auto_turret_burst_interval_time = 10
auto_turret_no_burst_interval_time = 0
auto_turret_burst_interval_variance_percent = 1.000000
gun_range_threshold_variance_percent = 0.300000
gun_fire_accuracy_power_npc = 10


i change it to

gun_fire_interval_time = 0
gun_fire_interval_variance_percent = 0.500000
gun_fire_burst_interval_time = 2
gun_fire_burst_interval_variance_percent = 0.250000
gun_fire_no_burst_interval_time = 0.500000
gun_fire_accuracy_cone_angle = 2
gun_fire_accuracy_power = 10.000000
gun_range_threshold = 1.100000
gun_target_point_switch_time = 0.250000
fire_style = multiple
auto_turret_interval_time = 0
auto_turret_burst_interval_time = 1
auto_turret_no_burst_interval_time = 2
auto_turret_burst_interval_variance_percent = 0.200000
gun_range_threshold_variance_percent = 0.300000
gun_fire_accuracy_power_npc = 10

and will not crash. maybe the problem about interval_variance_percent and interval_time, how to set that?

Return to Freelancer General Editing Forum