Jump to content

Need help with zscript


Recommended Posts

Im making a new monster in zscript and I cant figure out how to add a different sound

class lambstrosity : Actor
{
    Default
    {
        Health 1000;
        Radius 48;
        Height 64;
        Mass 1000;
        Speed 20;
        PainChance 50;
        Monster;
        +FLOORCLIP
        +BOSSDEATH
        SeeSound "fatso/sight";                                       <-----
        PainSound "fatso/pain";                                        <-----
        DeathSound "fatso/death";                                    <-----         how do I change these????
        ActiveSound "fatso/active";                                   <-----
        Obituary "I like having you around";
        Tag "$FN_MANCU";
    }
    States
    {
    Spawn:
        FATT AB 15 A_Look;
        Loop;
    See:
        FATT AABBCCDDEEFF 4 A_Chase;
        Loop;
    Missile:
        FATT G 20 A_FatRaise;
        FATT H 10 BRIGHT A_FatAttack1;
        FATT IG 5 A_FaceTarget;
        FATT H 10 BRIGHT A_FatAttack2;
        FATT IG 5 A_FaceTarget;
        FATT H 10 BRIGHT A_FatAttack3;
        FATT IG 5 A_FaceTarget;
        Goto See;
    Pain:
        FATT J 3;
        FATT J 3 A_Pain;
        Goto See;
    Death:
        FATT K 6;
        FATT L 6 A_Scream;
        FATT M 6 A_NoBlocking;
        FATT NOPQRS 6;
        FATT T -1 A_BossDeath;
        Stop;
     Raise:
        FATT R 5;
        FATT QPONMLK 5;
        Goto See;
    }
}

Also I cant figure out how to add the monster in udb with the editor numbers so I have the actor using the beta lost soul's number

DoomEdNums
{
    9037 = lambstrosity
}

some other tips with zscript would also be appreciated

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...