Omni+

A place to discuss mods in development and concepts for new mods.
Post Reply
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Omni+

Image

Advanced fire control configuration for every omnidirectional weapon and more.

Friendly Fire Avoidance System
-Prevents friendly fire by automatically interrupting shots based on their probability of hitting a friendly target. - COMPLETED

Configuration of
-Autotargeting on/off - COMPLETED
-Autotargeting criteria
-Omnidirectional on/off - COMPLETED
-FFAS on/off - COMPLETED
-FFAS activation governers - COMPLETED
-FFAS target criteria

Full support for any weapon configuration
-omnidirectional - COMPLETED
-fixed - COMPLETED
-swivel - COMPLETED
-dual - COMPLETED
-alternating - COMPLETED
-wall - COMPLETED
-repeating - COMPLETED
-spread - COMPLETED

Easy portability
-Code that can be copy and pasted onto any weapon, for full functionality with minimal or no knowledge of scripting required. - COMPLETED

Estimated Time of Completion: December 2013 - COMPLETED

UPDATE: Added support for swivel weapons and non-standard fire arcs.

UPDATE: Released! http://xelerus.de/index.php?s=mod&id=1357
Last edited by TVR on Tue Mar 11, 2014 11:21 pm, edited 3 times in total.
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
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?

Nice TVR, can't wait to see this finished :3
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.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

This is definitely awesome ! :D
-repeating - COMPLETED
Not sure to understand how you implemented repeating. When I tried to create a a sysCreateWeaponFire weapon that could duplicate other weapons I couldn't figure out how to do repeating, since it requires shots to be fired in subsequent ticks. (I thought about using multiple events with 1 tick delay for each shot of the repeating weapon, but I never tried to actually write the code)
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Here's the secret: <OnFireWeapon> executes once for every shot fired by xml tags, with matching local variables. This means every repeating, alternating, spread, etc. shot executes <OnFireWeapon> once with the correct aFireAngle, aFirePos, etc.

This property also allows the existing <OnFireWeapon> code to be copied and pasted into the <Events> of any weapon, and provide all Omni+ functionality with zero additional effort.

I encourage you to play with the sample extension, it's nice.
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Would this friendly-fire avoidance system be portable to other projects? I'm working on a little tweaks mod that reworks autons and it'd be cool if I could find a way to put an automatic "don't annoy the black market" system into them. I can see it working on autodefensedevices, but is this limited to omni/swivel weapons or is the same principle feasible for a fixed weapon?
Mischievous local moderator. She/Her pronouns.
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Yes, as this framework applies to the base weapons, autons will automatically check their fire if they use the base weapon.

Here, the attached extension adds the functionality of this framework to the dual laser cannon, download it and try shooting things with Wolfen - trust me, it's worth playing around with.
Attachments
omni+.zip
(2.5 KiB) Downloaded 196 times
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Cheers. For a non-CC game that framework's everything required to solve about 50% of auton stupidity. Wouldn't work with CC though, since the auton bay would mess with it. I'm putting up a post in the suggestions board for an OnFireWeapon-like event for entire ships, so this kind of trick could theoretically be applied to the ship directly instead of to weapons.
Mischievous local moderator. She/Her pronouns.
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Omni+ Fire Control System & Framework, first release:

Details: http://forums.kronosaur.com/viewtopic.php?f=24&t=6314

Download: http://xelerus.de/index.php?s=mod&id=1357
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
Post Reply