Jump to content

"Rez out on death" to all things (and two edits)


arcvoodal

Recommended Posts

Applying the script effect from DLC02DefaultAmericanSoldierSCRIPT too all creatures and NPCs. With the edit that it also adds an ash pile. I have been able to attach the script to enemies, but many enemies and npcs already have scripts of their own. Perhaps appending this script to the end of theirs could work? Anyway, here is the script and below it is the edit I have made (which does not work)

scn DLC02DefaultAmericanSoldierSCRIPT

;// Rez out counter vars
short beginRezOut
short rezOutInit
short rezOutStopOnce
float rezOutCounter

BEGIN GAMEMODE

	;//////////////////////////////////////
	;// REZ OUT ON DEATH
	;//////////////////////////////////////
	IF beginRezOut == 1

		IF rezOutInit == 0
			pms DLC02DeRezDeathShader
			set rezOutInit to 1
			set rezOutCounter to 4
		ENDIF

		;// a 4 second timer, after 2.5 seconds we remove the effect, after the 4th second we disable
		IF rezOutCounter > 1.25
			set rezOutCounter to rezOutCounter - getSecondsPassed

		ELSEIF rezOutCounter <= 1.25 && rezOutCounter > 0.85

			IF rezOutStopOnce == 0
				sms DLC02DeRezDeathShader
				set rezOutStopOnce to 1
			ENDIF

			set rezOutCounter to rezOutCounter - getSecondsPassed

		ELSEIF rezOutCounter < 0.85 && rezOutStopOnce > 0
			moveTo DLC02CorpseDumpXMRK
			disable
			set beginRezOut to 0
		
		ENDIF
	ENDIF

	;//////////////////////////////////////
	;// REZ OUT ON DEATH
	;//////////////////////////////////////

END

BEGIN ONDEATH

	;// rez out the guys on death
	set beginRezOut to 1

END

my edit is to add attachashpile and markfordelete where it has the disable command:

scn zzaway

;// Rez out counter vars
short beginRezOut
short rezOutInit
short rezOutStopOnce
float rezOutCounter

BEGIN GAMEMODE

	;//////////////////////////////////////
	;// REZ OUT ON DEATH
	;//////////////////////////////////////
	IF beginRezOut == 1

		IF rezOutInit == 0
			pms DLC02DeRezDeathShader
			set rezOutInit to 1
			set rezOutCounter to 4
		ENDIF

		;// a 4 second timer, after 2.5 seconds we remove the effect, after the 4th second we disable
		IF rezOutCounter > 1.25
			set rezOutCounter to rezOutCounter - getSecondsPassed

		ELSEIF rezOutCounter <= 1.25 && rezOutCounter > 0.85

			IF rezOutStopOnce == 0
				sms DLC02DeRezDeathShader
				set rezOutStopOnce to 1
			ENDIF

			set rezOutCounter to rezOutCounter - getSecondsPassed

		ELSEIF rezOutCounter < 0.85 && rezOutStopOnce > 0
			AttachAshPile
			moveTo DLC02CorpseDumpXMRK
			disable
			markfordelete
			set beginRezOut to 0
		
		ENDIF
	ENDIF

	;//////////////////////////////////////
	;// REZ OUT ON DEATH
	;//////////////////////////////////////

END

BEGIN ONDEATH

	;// rez out the guys on death
	set beginRezOut to 1

END

the attachashpile does not work.

so the mod request is for the attachashpile to work with this, and to have some way to have this apply to all enemies and corpses off all kinds.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...