UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

add a difficulty level settings for co-op & solo gameplay to your mod updated

broken avatar :(
Created 6 years ago
by AllMoDs
0 Members and 1 Guest are viewing this topic.
2,420 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 September 2015
Last active: 5 days ago
Posts
256
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Signature
×
AllMoDs's Groups
      warning   do not Precache the pics  you use will get error in coop sooner or latter they will still show

you can set 5 difficulty levels from normal to what ever you name it the zoms  get more health and speed the harder the difficulty level you can add more in to happen easy
make a backup of both files before replacing the difficulty one is a default menu I changed
and it is not for zombie until now so after you're finished with your mod put it back
it is the difficulty menu that pops up when you play a new game






coop menu


how to add
download files put in raw/ui   look down if you want  solo and coop menu all in one   get 2nd download file

add this in mod csv

Spoiler: click to open...
menufile,ui/xboxlive_lobby.menu
menufile,ui/difficulty.menu



the xboxlive_lobby.menu file line 294 change this
Spoiler: click to open...
"^3 Battle Freezer "
coop start is what your naming

the difficulty.menu change
line 62 to 66
change all named
Spoiler: click to open...
specialty_db1
specialty_db2
specialty_db3
specialty_db4
specialty_db5

its pic that shows when mouse is on that option

lines 78 to 85 change text
line 78 is the menu title basically where this is "^3The Higher The Stars The Harder The Game"
the rest
the names of your different difficulty levels


in zombie mode gsc look for this
Spoiler: click to open...
ai_calculate_health()


replace it all with this

Spoiler: click to open...
ai_calculate_health()
{
   // After round 10, get exponentially harder
   if( level.round_number >= 10 )
   {
      level.zombie_health  += Int( level.zombie_health + level.zombie_health_level * level.zombie_vars["zombie_health_increase_percent"] );
      return;
   }

   if( level.round_number > 1 )
   {
      level.zombie_health = Int( level.zombie_health + level.zombie_health_level + level.zombie_vars["zombie_health_increase"] );
   }

}


go to _zombiemode_spawner.gsc

delete this out its  right on top

Spoiler: click to open...

level.zombie_health = 150;
level.zombie_move_speed = 1;


add this
Spoiler: click to open...
if (GetDVarInt("zom_level") == 1 )
   {
         level.zombie_health_level = 0;
         level.zombie_health = 150;
         level.zombie_move_speed = 1;
   }
   else if (GetDVarInt("zom_level") == 2 )
   {
         level.zombie_health_level = 100;
         level.zombie_health = 150;
         level.zombie_move_speed = 2;
         self.run_combatanim = level.scr_anim[self.animname]["walk" + 10];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 3 )
   {
         level.zombie_health_level = 150;
         level.zombie_health = 150;
         level.zombie_move_speed = 3;
         self.run_combatanim = level.scr_anim[self.animname]["walk" + 15];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 4 )
   {
         level.zombie_health_level = 200;
         level.zombie_health = 150;
         level.zombie_move_speed = 4;
         self.run_combatanim = level.scr_anim[self.animname]["run" + 20];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 5 )
   {
         level.zombie_health_level = 250;
         level.zombie_health = 150;
         level.zombie_move_speed = 5;
         self.run_combatanim = level.scr_anim[self.animname]["sprint" + 25];
         self set_run_speed();
   }



will look like this at top


Spoiler: click to open...
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;


#using_animtree( "generic_human" );
init()
{
   
   if (GetDVarInt("zom_level") == 1 )
   {
         level.zombie_health_level = 0;
         level.zombie_health = 150;
         level.zombie_move_speed = 1;
   }
   else if (GetDVarInt("zom_level") == 2 )
   {
         level.zombie_health_level = 100;
         level.zombie_health = 150;
         level.zombie_move_speed = 1;
         self.run_combatanim = level.scr_anim[self.animname]["walk" + 10];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 3 )
   {
         level.zombie_health_level = 150;
         level.zombie_health = 150;
         level.zombie_move_speed = 2;
         self.run_combatanim = level.scr_anim[self.animname]["walk" + 15];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 4 )
   {
         level.zombie_health_level = 200;
         level.zombie_health = 150;
         level.zombie_move_speed = 1;
         self.run_combatanim = level.scr_anim[self.animname]["run" + 20];
         self set_run_speed();
   }
   else if (GetDVarInt("zom_level") == 5 )
   {
         level.zombie_health_level = 250;
         level.zombie_health = 150;
         level.zombie_move_speed = 1;
         self.run_combatanim = level.scr_anim[self.animname]["sprint" + 25];
         self set_run_speed();
   }
   
   
   
   level.zombie_eyes_limited = 1;
   level.zombie_eyes_disabled = 1;


compile your mod and all done


all dun start coop game host picks what difficulty level  you play and then start game can add gametypes in to
any background picture or video will show on this screen now as well


both coop and solo set up

do every thing same but use these files 



but in this difficulty.menu
lines 83 to 87 is solo names
and put your dev map name where this is
Spoiler: click to open...
nazi_zombie_dbzzs1
on each line
lines 89 to 93 are coop names

and in your main.menu where your solo lunch button is take this out
Spoiler: click to open...
exec "map your_map_name"

mine looked like this
Spoiler: click to open...
CHOICE_BUTTON_VIS( 1, "^3Dragonball Z  Frieza Saga", exec "map nazi_zombie_dbzzs1", when( !localvarBool( ui_hideBack ) ); )

after you take that out put this where that was

Spoiler: click to open...
setdvar sub_menu "1" open popmenu_newgame

will look like this

Spoiler: click to open...
CHOICE_BUTTON_VIS( 1, "^3Dragonball Z  Frieza Saga", setdvar sub_menu "1" open popmenu_newgame, when( !localvarBool( ui_hideBack ) ); )

warning   do not Precache the pics  you use will get error in coop sooner or latter they will still show

compile map
all dun when you click the solo  button the difficulty menu pops up when you click what you want it runs the game with difficulty set
Last Edit: November 15, 2017, 10:57:20 am by AllMoDs
broken avatar :(
×
broken avatar :(
Location: deDortmund
Date Registered: 20 December 2015
Last active: 5 months ago
Posts
307
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
My Groups
More
Personal Quote
Payback
Signature
Tears Of The Fallen | Join the project https://discord.gg/8gDNQRj
×
fanmagic's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
fanmagic's Contact & Social LinksTears Of The Fallen
Awesome! I tried this by myself a while ago, but I'm not really good when it comes to menu stuff. Thanks for sharing :)

 
Loading ...