OnFireWeapon equivelant for ships/stations

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2831
Joined: Mon Aug 17, 2009 4:27 am

I've been looking into porting TVR's most excellent anti-friendly-fire code into something I can use on an experimental mod for autons to reduce their...exuberant.....style of targeting. However by all accounts, there's no event that can be used. OnFireWeapon is the perfect choice (and the event that's used on TVR's weapons), but it's limited to weapons (unless it can be used on ships/stations, in which case this suggestion can be ignored). Thus to make autons (or anything else) have anything that works on a per-shot basis would require every weapon on autons to use the code.....but with the auton bay, autons can't really be fitted with custom NotRandom+NotForSale weapons....so every weapon in the game would to have the code, then every other ship would need to ignore it (or else I'd need to see about making everything avoid FF, which while interesting, is not my current goal). What would be useful (for this and probably other projects) is a way to trigger code whenever any weapon is fired by a ship or station in a way similar to OnFireWeapon. Sort of an OnFireAnyWeapon, if you will.
Mischievous local moderator. She/Her pronouns.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

I would much rather add some flags to AISettings for various forms or FF-control. Plus some global settings as well. What would you suggest?
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2831
Joined: Mon Aug 17, 2009 4:27 am

That gets the same result for me (and everyone else with FF problems), and if it's favorable to you then it's almost certainly the better option.
Mischievous local moderator. She/Her pronouns.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Some ideas:
FriendlyFire:
'all
No friendly fire from friendlies and neutrals

'friends
No FF only from allied sovereigns

'neutrals (no idea if this makes sense, but covering all of my bases)
No FF from neutral sovs
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

Do not forget targets within the same side that are angry with each other.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!

Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
Post Reply