(Tutorial) Adding an other sound to enemy on given level

View previous topic View next topic Go down

(Tutorial) Adding an other sound to enemy on given level

Post by Officer-M. John (Admin) on Wed May 31, 2017 11:53 am

I created some so tutorial what on given level available. It is tutorial too so. Let's him.

(Death sound):

WL_ACT2.CPP:

Code:

        case guardobj:
                {
                 int sounds[9]={ DEATHSCREAM1SND,
                                 DEATHSCREAM2SND,
                                 DEATHSCREAM3SND,
                                 DEATHSCREAM4SND,
                                 DEATHSCREAM5SND,
                                 DEATHSCREAM7SND,
                                 DEATHSCREAM8SND,
                                 DEATHSCREAM9SND
                                 };

                 #ifndef UPLOAD
                 PlaySoundLocActor(sounds[US_RndT()%8],ob);
                 #else
                 PlaySoundLocActor(sounds[US_RndT()%2],ob);
                 #endif
                }
                if  (gamestate.episode == 0 && mapon == 
                {
                PlaySoundLocActor(NEINSOVASSND,ob);
                }
                break;

(Greeting sound):

WL_STATE.CPP:

Code:

        case guardobj:
                PlaySoundLocActor(HALTSND,ob);
                NewState (ob,&s_grdchase1);
                if  (gamestate.episode == 0 && mapon == 
             {
                PlaySoundLocActor(SPIONSND,ob);
                }    
                ob->speed *= 3;                 // go faster when chasing player
                break;

Interessing tutorial from Me. Very Happy But is good if someone want change enemy sound on given level. I tested on Wolf4GW (60 Adventures mod:My mod).
avatar
Officer-M. John (Admin)
Admin

Posts : 323
Join date : 2015-10-02
Age : 19

View user profile http://wolf3dfanboys.usersboard.com

Back to top Go down

Re: (Tutorial) Adding an other sound to enemy on given level

Post by Ferir987 on Tue Jun 06, 2017 8:38 pm

oh my so much work....are you not tired of this??
avatar
Ferir987
Cool mod maker
Cool mod maker

Posts : 199
Join date : 2016-04-15
Age : 18
Location : Hungary,Heves Gyöngyös country

View user profile https://jhoni196.blogspot.hu/

Back to top Go down

Re: (Tutorial) Adding an other sound to enemy on given level

Post by Officer-M. John (Admin) on Wed Jun 07, 2017 2:56 pm

Ferir987 wrote:oh my so much work....are you not tired of this??

But.
avatar
Officer-M. John (Admin)
Admin

Posts : 323
Join date : 2015-10-02
Age : 19

View user profile http://wolf3dfanboys.usersboard.com

Back to top Go down

Re: (Tutorial) Adding an other sound to enemy on given level

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum