Please help me remove the screen color tint from items

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

Please help me remove the screen color tint from items

Post by Rowsol »

I've tried in the past to remove the tint from radsuit and berserk but to no avail. It seems the powerups they give have the color hardcoded on them. This has bugged me for years and if you know how to remove the color tint please tell me.

Also, on an unrelated note, I left this question in the "how do i" thread and figured posting it here couldn't hurt.
Rowsol wrote:I can't get this blood to project behind the monster.

Code: Select all

ACTOR NewBlood : Blood replaces Blood
{
+CLIENTSIDEONLY
+NOGRAVITY
States
{
Spawn:
Spray:
	TNT1 AAA 0 A_SpawnItemEx("FleshHit",0,0,0,0,0,0,0,128)
	TNT1 AAA 0 A_SpawnItemEx("BloodSpray",0,0,0,frandom(-2,2),0,0,0,129)	
	TNT1 AAA 0 A_SpawnItemEx("NewFlyingBlood",0,0,0,frandom(-2,2),0,0,0,129)	// <--- this one
	TNT1 AAA 0 A_SpawnItemEx("SmallFlyingBlood",0,0,0,frandom(-2,2),0,0,0,129)	
	Stop
	}
}

Code: Select all

ACTOR NewFlyingBlood
{
Scale 0.1
Health 1
Radius 2
Height 2
+MISSILE
+THRUACTORS
+CLIENTSIDEONLY
+CORPSE
+NOTELEPORT
+NOBLOCKMAP
+DONTSPLASH
+DOOMBOUNCE
BounceCount 2
BounceFactor 0.05
WallBounceFactor 0.05
States
{
Spawn:
  TNT1 A 0
  TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
  FBLD AAABBBCCCDDD 1 A_SpawnItem("NewFlyingBloodTrail",0,0,0,1)
  Loop
Crash:
Death:
  TNT1 A 0 A_PlaySound("Gibs")
  TNT1 A 1 A_SpawnItem("NewBloodSpot",0,0,0,1)
  Stop
Toaster:
  TNT1 A 0
  Stop
  }
}
No matter what I make the velocity the blood won't go behind them even though +THRUACTORS is on the blood.

Also, what does the flag 129 do anyway? This is code from Complex Doom btw.
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Please help me remove the screen color tint from items

Post by Blue Shadow »

Rowsol wrote:I've tried in the past to remove the tint from radsuit and berserk but to no avail. It seems the powerups they give have the color hardcoded on them. This has bugged me for years and if you know how to remove the color tint please tell me.
Setting the [wiki=Powerup_properties#Powerup.Color]color[/wiki] to "None" on the PowerupGiver should achieve that.
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

Re: Please help me remove the screen color tint from items

Post by Rowsol »

Could you give a decorate example? I'm pretty sure I tried that before (it's been a while) and it wouldn't work.
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Please help me remove the screen color tint from items

Post by Blue Shadow »

Yeah, for a moment I forgot that the berserk is actually a CustomInventory, not a PoweupGiver.

Code: Select all

ACTOR BerserkGiver : PowerupGiver
{
    Inventory.MaxAmount 0
    Powerup.Type "Strength"
    Powerup.Color "None"
    +INVENTORY.AUTOACTIVATE
}

ACTOR Berserk2 : Berserk
{
    States
    {
    Pickup:
        TNT1 A 0 A_GiveInventory("BerserkGiver")
        Goto Super::Pickup+1
    }
} 
Rowsol wrote:Also, what does the flag 129 do anyway?
It's the same as putting 'SXF_TRANSFERTRANSLATION | SXF_CLIENTSIDE', only less readable.
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

Re: Please help me remove the screen color tint from items

Post by Rowsol »

Thank you! It works, but I needed to change the alpha of none to 0, or else the screen turns black. I think my issue before was that I didn't put autoactivate on my code. Hopefully I can get the radsuits to work similarly.

How do you know what that flag does?

edit: Ok, so, radsuit is a powerupgiver. I tried the color setting, and it's still green. Sigh... help again oh great one? I mean, I seriously don't undestand the issue. The code looks exactly like the berserkgiver but the green tint is there anyway...

Code: Select all

ACTOR radsuit2 : radsuit replaces radsuit
{
  Powerup.Color "None", 0
} 
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Please help me remove the screen color tint from items

Post by Blue Shadow »

Are you sure you're running a ZDoom build which supports the feature? This is a development feature after all.
Rowsol wrote:How do you know what that flag does?
Each flag has a constant value associated with it. SXF_TRANSFERTRANSLATION is 1, and SXF_CLIENTSIDE is 128. If you OR 1 and 128 (1 | 128), you get 129.
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

Re: Please help me remove the screen color tint from items

Post by Rowsol »

Well I'll be damned, my version is too old for it. The newest dev build of gzdoom worked fine with the radsuit replacement. It didn't spit out an error so I didn't think it was too new but apparently it is. I really appreciate all your help.

Thanks for the page with the flag codes.
Locked

Return to “Editing (Archive)”