Override default shield hit effect

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 857
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

Can the default hit effect be substituted or removed on shields?

I can implement a new one using tlisp but I can't remove the default one.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Currently no, but it's on the cards for....1.7, I think.
Mischievous local moderator. She/Her pronouns.
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 857
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

This ticket on Ministry seems to imply that it's possible, but I can't find anywhere that it's documented or used :?
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.
User avatar
Song
Fleet Admiral
Fleet Admiral
Posts: 2801
Joined: Mon Aug 17, 2009 4:27 am

Xephyr wrote:This ticket on Ministry seems to imply that it's possible, but I can't find anywhere that it's documented or used :?
That's marked as mixed in 1.7 ALpha 1.....which isn't out yet.

EDIT: Whoops, misread that. Maybe poke PM?
Mischievous local moderator. She/Her pronouns.
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

 I did a bit of SCIENCE! on it and PM’d the code that worked for me.

EDIT: For the curious:

Code: Select all

		<Shields
			hitPoints=		"25"
			regen=			"0"
			depletionDelay=	"0"
			powerUse=		"120"
			>
			<HitEffect
				sound=				"&snShieldHit1;"
				>
				<Shockwave
					style=			"glowRing"
					speed=			"10"
					lifetime=		"5"
					fadeStart=		"0"
					width=			"3"
					glowWidth=		"11"
					primaryColor=	"#ffff88"
					secondaryColor=	"#888844"
				/>
			</HitEffect>
		</Shields>
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

yes, it's possible.
You can override a hiteffect on a single shield and you can also, of course, replace the default hiteffect with a custom one. I did that long ago for RPC, but my graphical skills for a different hiteffect were a bit lacking.
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

Shields support "hitEffect" just like weapons.
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