Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
thesecondcomingdoom

Problem with Morphed player

Recommended Posts

First of all, have my DoomPlayer.

ACTOR DoomPlayer : PlayerPawn
{
  Speed 1
  Health 350
  Radius 16
  Height 56
  Mass 100
  PainChance 255
  Player.DisplayName "True Marine"
  Player.CrouchSprite "PLYC"
  Player.StartItem "Fist"
  Player.StartItem "BorkStopSign"
  Player.StartItem "Chainsaw"
  Player.StartItem "AcidLauncher"
  Player.StartItem "RocketLauncher"
  Player.WeaponSlot 1, Fist, Chainsaw, DontSignMeTheFuckUp
  Player.WeaponSlot 2, Pistol
  Player.WeaponSlot 3, Shotgun, SuperShotgun, OceanMan
  Player.WeaponSlot 4, Chaingun, SuperBomb, SuperBallWeapon
  Player.WeaponSlot 5, RocketLauncher, AcidLauncher
  Player.WeaponSlot 6, PlasmaRifle
  Player.WeaponSlot 7, BFG9000, SuperShooter9001
  Player.ColorRange 112, 127
  Player.ColorSet 0, "Green",         0x70, 0x7F,  0x72
  Player.ColorSet 1, "Gray",          0x60, 0x6F,  0x62 // Called "Indigo" originally so as to have a unique initial
  Player.ColorSet 2, "Brown",         0x40, 0x4F,  0x42
  Player.ColorSet 3, "Red",           0x20, 0x2F,  0x22
  // Doom Legacy additions
  Player.ColorSet 4, "Light Gray",    0x58, 0x67,  0x5A
  Player.ColorSet 5, "Light Brown",   0x38, 0x47,  0x3A
  Player.ColorSet 6, "Light Red",     0xB0, 0xBF,  0xB2
  Player.ColorSet 7, "Light Blue",    0xC0, 0xCF,  0xC2

  States
  {
  Spawn:
    NPLA A -1
    Loop
  See:
    NPLA ABCD 4 
    Loop
  Missile:
    NPLA E 12
    Goto Spawn
  Melee:
    NPLA F 6 BRIGHT
    Goto Missile
  Pain:
    NPLA G 4 
    NPLA G 4 A_Pain
    Goto Spawn
  Death:
    NPLA H 0 A_PlayerSkinCheck("AltSkinDeath")
  Death1:
    NPLA H 10
    NPLA I 10 A_PlayerScream
    NPLA J 10 A_NoBlocking
    NPLA KLM 10
    NPLA N -1
    Stop
  XDeath:
    NPLA O 0 A_PlayerSkinCheck("AltSkinXDeath")
  XDeath1:
    NPLA O 5
    NPLA P 5 A_XScream
    NPLA Q 5 A_NoBlocking
    NPLA RSTUV 5
    NPLA W -1
    Stop
  AltSkinDeath:
    NPLA H 6
    NPLA I 6 A_PlayerScream
    NPLA JK 6
    NPLA L 6 A_NoBlocking
    NPLA MNO 6
    NPLA P -1
    Stop
  AltSkinXDeath:
    NPLA Q 5 A_PlayerScream
    NPLA R 0 A_NoBlocking
    NPLA R 5 A_SkullPop
    NPLA STUVWX 5
    NPLA Y -1
    Stop
  }
}
Then, when i morph to this one
ACTOR JetpackDoom : PlayerPawn
{
  Speed 1
  Health 100
  Radius 16
  Height 56
  Mass 100
  PainChance 255
  Player.DisplayName "Jetpack Morphed"
  Player.CrouchSprite "PLYC"
  Player.StartItem "Pistol"
  Player.StartItem "Fist"
  Player.StartItem "Clip", 50
  Player.WeaponSlot 1, Fist, Chainsaw
  Player.WeaponSlot 2, Pistol
  Player.WeaponSlot 3, Shotgun, SuperShotgun
  Player.WeaponSlot 4, Chaingun
  Player.WeaponSlot 5, RocketLauncher
  Player.WeaponSlot 6, PlasmaRifle
  Player.WeaponSlot 7, BFG9000
  Player.ColorRange 112, 127
  Player.ColorSet 0, "Green",         0x70, 0x7F,  0x72
  Player.ColorSet 1, "Gray",          0x60, 0x6F,  0x62 // Called "Indigo" originally so as to have a unique initial
  Player.ColorSet 2, "Brown",         0x40, 0x4F,  0x42
  Player.ColorSet 3, "Red",           0x20, 0x2F,  0x22
  // Doom Legacy additions
  Player.ColorSet 4, "Light Gray",    0x58, 0x67,  0x5A
  Player.ColorSet 5, "Light Brown",   0x38, 0x47,  0x3A
  Player.ColorSet 6, "Light Red",     0xB0, 0xBF,  0xB2
  Player.ColorSet 7, "Light Blue",    0xC0, 0xCF,  0xC2
  States
  {
  Spawn:
    JETP B -1
    Loop
  See:
    JETP B 40 A_PlaySound("FLYCOOL")
    Loop
  Missile:
    JETP C 12
    Goto Spawn
  Melee:
    JETP C 6 BRIGHT
    Goto Missile
  Pain:
    JETP B 4 
    JETP B 4 A_Pain
    Goto Spawn
  Death:
    JETP B 0 A_PlayerSkinCheck("AltSkinDeath")
  Death1:
    JETP B 1 A_PlayerScream
    NPLA W 1 A_NoBlocking
    NPLA W 1
    NPLA W -1
    Stop
  XDeath:
    JETP B 0 A_PlayerSkinCheck("AltSkinXDeath")
  XDeath1:
    JETP B 1 A_XScream
    NPLA W 1 A_NoBlocking
    NPLA W 1
    NPLA W -1
    Stop
  AltSkinDeath:
    JETP B 1 A_PlayerScream
    NPLA W 1 A_NoBlocking
    NPLA W 1
    NPLA W -1
    Stop
  AltSkinXDeath:
    JETP B 1 A_PlayerScream
    NPLA W 1 A_NoBlocking
    NPLA W 1
    NPLA W -1
    Stop
  }
}
There's no problem with it. Sound plays, etc, but the sprite stays as NPLA A, and it should be JETP B. Can anyone help me?

Edit :

Apparently, if i don't move, my sprite doesnt change, but if i move, it changes? what the hell?

Share this post


Link to post
thesecondcomingdoom said:

First of all, have my DoomPlayer.

ACTOR DoomPlayer : PlayerPawn
{
  ...

Please finally understand that overwriting existing actors this way is wrong (read the disclaimer at the top of every actor definition page on the zdoom wiki, for example this one). You should define even your default player class with a unique name and assign it to be the default player class via "playerclasses" command in GameInfo section in MAPINFO.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×