[SCR] AI Ammo Cheat + DMG Mitigation (v1.08 - 17.12.11)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- apricotslice
- Posts: 14129
- Joined: Sun, 16. May 04, 13:01
-
- Posts: 3144
- Joined: Sun, 19. Dec 04, 02:41
- apricotslice
- Posts: 14129
- Joined: Sun, 16. May 04, 13:01
If the player cannot find the ammo, then sure they would.
They may not necessarily have an alternative gun available either until they find a steady ammo supply.
I have a number of 'salvaged' ships fitted out with salvaged guns, where the ship has no ammo for them. Until I find enough guns to fit them out properly, they get what is findable. If the gun cant fire, thats just a problem to be sorted at some point.
If those ships find themselves in major combat, they are going to be at a huge disadvantage in not having a decent gun loadout, but thats a player decision. Ideally, you dont allow them into combat, but shit happens.
Whos to say pirates dont make bad decisions ?
They may not necessarily have an alternative gun available either until they find a steady ammo supply.
I have a number of 'salvaged' ships fitted out with salvaged guns, where the ship has no ammo for them. Until I find enough guns to fit them out properly, they get what is findable. If the gun cant fire, thats just a problem to be sorted at some point.
If those ships find themselves in major combat, they are going to be at a huge disadvantage in not having a decent gun loadout, but thats a player decision. Ideally, you dont allow them into combat, but shit happens.
Whos to say pirates dont make bad decisions ?
Nah.apricotslice wrote:When do they get supplied with ammo ?
If they get an automatic resupply in the middle of a battle, then thats making things a lot harder. They SHOULD be able to run out in a battle, same as the player can.
The player would bring 50 crates of EBC ammo for an M7. The AI spawns with 1 or 2. Or none at all.
Ships do use ammo OOS so all the bigger race ships you meet have long run out of ammo.
The ammo cheat runs IS as well because I wanted it to be simple and some ships just don't have the cargo space for a workable supply of gauss ammo. Ammunition seems to be an optional extra.
The AI spawns whole fleets out of thin air - and that's IS...
So a little ammo is hardly going to break the game.
*shrug*apricotslice wrote:Well beyond my scripting ability.
A script will be as complicated as you like.
The problem with this one was that I insisted on making it signal driven. That reduces the overhead to a minimum because it only ever checks the few ships that actually get into a fight and not thousands of ships that never do.
Alas, this particular signal is buggy so I had to invent a wholly new signal handler... but other than that it was pretty simple. =)
Last edited by Gazz on Wed, 3. Jun 09, 04:15, edited 1 time in total.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 3144
- Joined: Sun, 19. Dec 04, 02:41
I decided against it because even if those had missiles, they eitherLancefighter wrote:Would it be too much to ask for a similar script for m7m/m8 resupply purposes?
- wouldn't do anything with them or
- would fire 100 Hammers against the first enemy ship they come across.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 3144
- Joined: Sun, 19. Dec 04, 02:41
ok, i didnt think of thatGazz wrote:I decided against it because even if those had missiles, they eitherLancefighter wrote:Would it be too much to ask for a similar script for m7m/m8 resupply purposes?
- wouldn't do anything with them or
- would fire 100 Hammers against the first enemy ship they come across.
Suppose it was for the best then
Yes, it works universe-wide so it will fix at least that OOS bug.wyvern11 wrote:I get it that this is s'posed to work OOS too, because having no ammo on AI-ships OOS really sucks
That and general CPU load was why I insisted on the signal system. Routinely checking thousands of ships would have been uhh... uncool. =)
The bugfix part wasn't the intention, though. I was promised a case of beer for writing this script. =P
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Version 1.05 released.
Damage Mitigation as an optional feature.
This is actually a spin-off from the OOS Combat Rebalance thread but I felt that this would be a good addition to IS-combat as well.
Effectively this is a mini-CMOD3 - as a mere script and without radically altering the whole game.
It increases the duration of capital ship battles but only for non-carriers, which are supposed to endure damage without blowing up after 15 seconds.
Right now it's only a small bonus so now it's like... 22 seconds. =)
But it's just a percentage value that I inserted based on gut feel. It can be any value.
The "heavy armour" of M2 is probably the most noticable. They can take 3 times as much hull damage as before without requiring a higher (modded) hull value that also drives up the repair bill.
If you'd like another value:
al.plugin.gz.ai.ammo.cheat, line 268.
I could even give AI ships a bonus when IS. But that would be mean, right? =P
(unless it's small enough so noone notices =)))
Damage Mitigation as an optional feature.
This is actually a spin-off from the OOS Combat Rebalance thread but I felt that this would be a good addition to IS-combat as well.
Effectively this is a mini-CMOD3 - as a mere script and without radically altering the whole game.
It increases the duration of capital ship battles but only for non-carriers, which are supposed to endure damage without blowing up after 15 seconds.
Right now it's only a small bonus so now it's like... 22 seconds. =)
But it's just a percentage value that I inserted based on gut feel. It can be any value.
The "heavy armour" of M2 is probably the most noticable. They can take 3 times as much hull damage as before without requiring a higher (modded) hull value that also drives up the repair bill.
If you'd like another value:
al.plugin.gz.ai.ammo.cheat, line 268.
I could even give AI ships a bonus when IS. But that would be mean, right? =P
(unless it's small enough so noone notices =)))
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 830
- Joined: Fri, 30. Dec 05, 22:14
I really like the concept of this script Gazz. Beefing up combat bigship hull and shielding is totally right on. As is cheating the ai ammo.
But about the M7M & M8 resupply, this is really a problem. npc M7M's spawning with 3 Flails are utterly disgusting, worse than useless..
And M8's firing off swarms of Tomahawk Heavy Missles (speed 196m/s) at M5's that it cannot possibly hit is not the Bombers' fault. Such stupidity will only be corrected when someone writes a script ensuring that ships only launch missles against targets that said missles can actually hit, and can actually cripple or kill.
But about the M7M & M8 resupply, this is really a problem. npc M7M's spawning with 3 Flails are utterly disgusting, worse than useless..
And M8's firing off swarms of Tomahawk Heavy Missles (speed 196m/s) at M5's that it cannot possibly hit is not the Bombers' fault. Such stupidity will only be corrected when someone writes a script ensuring that ships only launch missles against targets that said missles can actually hit, and can actually cripple or kill.
Come to think of it, I could actually create difficulty settings with that.
X3 never had any way to set the game to easy or hard. It was always... if favour of the player.
AI ships rarely have full shields or a weapon loadout that is as optimised as on a playership.
This however, would provide a way to say:
This game is "hard". All enemy ships take 20% less damage.
Or "easy" where all player ships take less damage... but it would be far easier to just limit the shields aboard enemy ships to achieve the same.
Besides, I'd rather create a "harder" setting than "easy". =P
It would still be limited to big ships plus maybe all ships that [PLAYERSHIP] attacks personally.
X3 never had any way to set the game to easy or hard. It was always... if favour of the player.
AI ships rarely have full shields or a weapon loadout that is as optimised as on a playership.
This however, would provide a way to say:
This game is "hard". All enemy ships take 20% less damage.
Or "easy" where all player ships take less damage... but it would be far easier to just limit the shields aboard enemy ships to achieve the same.
Besides, I'd rather create a "harder" setting than "easy". =P
It would still be limited to big ships plus maybe all ships that [PLAYERSHIP] attacks personally.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 2972
- Joined: Sun, 18. Jun 06, 13:37
naaah... that is quite useless imhoGazz wrote:Come to think of it, I could actually create difficulty settings with that.
and other blahblah
even if a NPC ship takes 20% (or even 99%) less damage we could kill it easily.
let's make an example:
Vanilla: random M3, move to its tail, the idot cannot evade, he goes BOOM
with your "hard mode" script: random M3, move to its tail, the idot cannot evade, he goes BOOM in double or thrice the time. Just the time you hold down the trigger is changed.
I think that the Hardenss of the game is determined mostly by smartness of the AI. Take the AI to the flight school and even a crippled M5 will royally Kick your arse.
Give a player a random NPC ship (except TS/TM/TL/TP of course), even if it has only IREs he can kill M3s (with some careful and loooooong firing)
so why the AI is so pityful even on the best equipped ships?
(not to mention the M7M and M8 that try to kill you with their rear turret when they are fully loaded with deadly missiles...)
Trade, Fight, Build, Think, Modify.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
-
- Posts: 2972
- Joined: Sun, 18. Jun 06, 13:37
yeah... the fight lasts more, but it remains boring imho.
I already fended off waves upon waves of PBE-equipped tinbots or endless pirates/yakis and the tactic is the same:
they open fire
I cut the engines and turn on enemy
I go to full thrust pointing them
all the shooters go evasive (collision avoidance, they are too close)
one of them goes BOOM
the survivors open fire
I cut the engines and turn on enemy
I go to full thrust pointing them
all the shooters go evasive
one of them goes BOOM
Rinse and repeat. Forever.
No difference from Xenon to Pirate to Kha'ak, nor from M5 to M4 to M3 to M6. Always the same identical stupid AI is in the cockpit. It can become invulnerable but still is too easy to fool.
I did the same with M3 (various) and M6 (vidar).
(the "fly between 2 M2 and watch them shooting each other to death" is another example)
I already fended off waves upon waves of PBE-equipped tinbots or endless pirates/yakis and the tactic is the same:
they open fire
I cut the engines and turn on enemy
I go to full thrust pointing them
all the shooters go evasive (collision avoidance, they are too close)
one of them goes BOOM
the survivors open fire
I cut the engines and turn on enemy
I go to full thrust pointing them
all the shooters go evasive
one of them goes BOOM
Rinse and repeat. Forever.
No difference from Xenon to Pirate to Kha'ak, nor from M5 to M4 to M3 to M6. Always the same identical stupid AI is in the cockpit. It can become invulnerable but still is too easy to fool.
I did the same with M3 (various) and M6 (vidar).
(the "fly between 2 M2 and watch them shooting each other to death" is another example)
Trade, Fight, Build, Think, Modify.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Collision avoidance and break off speed/distance are hardcoded into the low level flight instructions.
Scripts can neither change them nor turn off the collision avoidance part.
With very expensive (CPU wise) workarounds you can let a few ships fly using your collision rules but this won't do for an "AI upgrade".
That part of the AI is not changeable with scripts but other items are, like for how long they evade afterwards.
Scripts can neither change them nor turn off the collision avoidance part.
With very expensive (CPU wise) workarounds you can let a few ships fly using your collision rules but this won't do for an "AI upgrade".
That part of the AI is not changeable with scripts but other items are, like for how long they evade afterwards.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
-
- Posts: 2972
- Joined: Sun, 18. Jun 06, 13:37
I was a bit heavy, but I hope you got my point.
I'm not against collision avoidance, that is ok, it is the evading that is too long and easy to exploit and the "attacking manouvers" that are simple and easy to fool. (Ok, they can kill you if they are too much... but well, they need to be hudreds... and that is a bit too epic for just a "patrol sector" mission)
and maybe different tactics used by different ships... now we have only one tactic:
Move straight to enemy and shoot, launch a missile sometimes. Even if the ship that uses them is a TS.
I hope that scripts can change that a bit...
I'm not against collision avoidance, that is ok, it is the evading that is too long and easy to exploit and the "attacking manouvers" that are simple and easy to fool. (Ok, they can kill you if they are too much... but well, they need to be hudreds... and that is a bit too epic for just a "patrol sector" mission)
and maybe different tactics used by different ships... now we have only one tactic:
Move straight to enemy and shoot, launch a missile sometimes. Even if the ship that uses them is a TS.
I hope that scripts can change that a bit...
Trade, Fight, Build, Think, Modify.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
-
- Posts: 830
- Joined: Fri, 30. Dec 05, 22:14
The DDRS mod for 3R and now DDTC mod for TC created a jury-rigged workaround for this problem: all npc ship hardpointss spawn with 2 sets of weapons--one for best anti-fighter, second for best anti-bigship--and have a simple weaponswitcher script that swaps in the appropriate weapon based on target type. Crude but surprisingly effective.AI ships rarely have full shields or a weapon loadout that is as optimised as on a playership.
Also, by ensuring that all npc aggressors spawn with full engine, rudder, & cargo tunings; DDTC ensures they become much harder to hit. They still have the same braindead ai, but at least have more mojo to play with
...........
The next step would be to create a simple "missleswitcher" script, that would load up ships with 3 or perhaps 4 missle types: best anti-M5/M4; best anti-M4+/M3; best anti-M3+/M6; best anti-TL/M7/M1/M2...and fire the appropriate missle only at its matching target type.
-
- Posts: 2972
- Joined: Sun, 18. Jun 06, 13:37
that would be a very cool addition to your script, Gazz... any time a ship is engaged it gets ammo and max tunings/.Also, by ensuring that all npc aggressors spawn with full engine, rudder, & cargo tunings
I think that it would be fairly simple to create a "Missile cheat", all fighters that engage enemy get their cargo bay cleaned of missiles and at Gazz's (script's) discretion a missile will be summoned and launched.The next step would be to create a simple "missleswitcher" script
Just to add a bit more realism we can say that the number of missiles "summoned and launched" will be proportional to the ship's cargo bay.
Trade, Fight, Build, Think, Modify.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.