(Tutorial) Creating a timed bonus item on given level

View previous topic View next topic Go down

(Tutorial) Creating a timed bonus item on given level

Post by Officer-M. John (Admin) on Sat Jul 02, 2016 10:21 am

I love using a MCS's bonus item on my mods. I testing if we adding a Creating a timed bonus item on given level and work.

Creating a timed bonus item:http://www.areyep.com/Codingtips/timedbonus.html

WL_PLAY.CPP:

Code:

   if (gamestate.episode == 1 && mapon == 3)
   {
   if (gamestate.godmode || godmode)
    {
    godmode = true;
    gamestate.godmodecount += tics;
    if (gamestate.godmodecount > 30l*70) // godmode lasts for 30 secs max
     {
     SD_PlaySound (TAKEDAMAGESND); // enter any sound here
     gamestate.godmodecount = 0;
     gamestate.godmode = false;
     godmode = false;
     }}}        
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

View previous topic View next topic Back to top

- Similar topics

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