Add support for missiles that can passthrough immutables.

Post ideas & suggestions you have pertaining to the game here.
Post Reply
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

Add something that, if used, lets missiles with (high) passthrough pass through immutable objects like shockwaves do. This would be useful for objects that are spawned as missiles because it is most expendient if spawned as missiles rather than as ships or stations; for example, some types of drones/options from various shm'ups. It would also be useful for those who want to add overpowered custom weapon effects, such as cutter waves from various shm'ups.
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.
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Interestingly enough, missiles post-1.1 with passthrough=100 were impossible to destroy or intercept and would cleanly penetrate any spaceObject, regardless of damage or other factors. This behavior changed with one of the 1.2 betas, though.
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

Might be nice to have a whole bunch of criteria for what a missile can/cannot pass through. That'd let a modder do things like have a weapon that shoots through ships and asteroids, but gets stopped by planets, stargates and stations. Or something like that.
Mischievous local moderator. She/Her pronouns.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

I'll look at this for the next dev release.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

PM wrote:Add something that, if used, lets missiles with (high) passthrough pass through immutable objects like shockwaves do. This would be useful for objects that are spawned as missiles because it is most expendient if spawned as missiles rather than as ships or stations; for example, some types of drones/options from various shm'ups. It would also be useful for those who want to add overpowered custom weapon effects, such as cutter waves from various shm'ups.
The easiest thing to do would be to add an additional parameter:

passthroughImmutable="..."

This would allow you to set a different value for immutable passthrough (though, of course, you could set it to the same value).

Does this handle the case that you're interested in?
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

I think so. Say, if a missile has passthroughImmutable="100", it can pass through immutables? If so, that would make spawning pseudo-autons as missiles viable.
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.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

PM wrote:I think so. Say, if a missile has passthroughImmutable="100", it can pass through immutables? If so, that would make spawning pseudo-autons as missiles viable.
Got it--now I get what you're trying to do.

Would it be better/possible to just create real ships? You can, for example, create a ship from inside an OnFireWeapon event. The advantage is that they then behave like real ship (e.g., can be targeted, register for purposes of the "Enemy ships detected" warning, scoring, etc.).

The only disadvantage is that they don't collide--but we could add that to ships.
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Ships have AI. There is no ramming AI.

Either there needs to be both a ramming AI and ship to ship collision detection or projectiles able to pass immutables the way ships do to satisfy PM's needs. The former would require two engine changes, the latter only one. The latter is also easier to use as the whole system can be in one item tag rather than being split between an item tag and a ship tag.
Literally is the new Figuratively
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

I also like to be able to make completely overpowered weapons that shoot missiles that pass through immutables like shockwaves too, without being limited to shockwaves only, but this is low priority. Spawning missiles that can emulate ships when it is easier than spawning a ship is more useful.

Satellites that behave like Gradius options, the big R-Type force pod, and Chmmr Zapsats do not need AI. They simply orbit or follow the player precisely (Transcendence ship AI has movement quirks that cannot replicate this). Some options also block shots and kill mooks that collide with the option, something ships cannot do but missiles can in Transcendence.

Atarlost has explained it is a more succinct way too.
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.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

In that case, the easiest thing for me would be to have a single boolean on a weapon types that causes it to ignore immutables. Unlike passthrough, it would never attempt to damage an immutable--it would just ignore them, like ships to.

I suspect we'll need other options as well. For instance, you might need an option to have a missile orbit its source.
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

It would nice if there is a chance for immutable passthrough for custom weapons that emulate shockwave passthrough. Even shockwaves do not always passthrough planets.

Orbiting support would be cleaner and more efficient than <Event> shenanigans. (I already have a device in Items912 called MASS that spawns options that orbit the playership and smack things around for minor damage, in addition to the device giving +30% to low level shields.)
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