Thread: [ZM] RPG mod
View Single Post
Author Message
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 02-24-2008 , 21:28   [ZM] RPG mod
Reply With Quote #1

ZM RPG mod

Description:
Players will be able to get upgrades to help on their journey of survival
The plugin is not completely finished, but the basics are done

Requirements:
Cvars / Upgrades!
Code:
//*******************************************************************/
//Main configuraion!

sm_zm_leveltype 1  //0=XP system (don't use it yet) | Anything else, the amount of levels per round
sm_zm_minplayers 4 //The minimun amount of players till' XP start to count
sm_zm_maxlevel 250 //Maximun possible level

//All this variable are useless if "leveltype" is not 0
sm_zm_deadxp 80    //The amount of xp people will receive if they are dead
sm_zm_multi 0.8    //The bigger this number, the more XP people will receive

//*******************************************************************/
//Sleeping
//Players can sleep (screen will go black and they can't move) and theirs life will be regenerated
//This is compatiable with Extra Health

//Formula goes as
//For every ( (sm_zm_sleep_start/60) - (sm_zm_sleep_lose/60) * level ) seconds, heal player (sm_zm_sleep_regen + sm_zm_sleep_perlevel * level)

sm_zm_sleep_start 60      //How much time (0.1sec) the player will take to regen 1 life
sm_zm_sleep_lose 1        //How much time (0.1sec) the player will lose per level
sm_zm_sleep_regen 1.0     //How much health player will heal per loop
sm_zm_sleep_perlevel 0.0  //How much life player will heal extra per loop per level

//*******************************************************************/
//Extra Health
//Increase the amount of health players can have

sm_zm_extralife_level 1.4  //How much life player will win per level
sm_zm_extralife_spawn 1 //Set this to 1 if player will respawn with that life
sm_zm_extralife_auto 1 //Set this to 1 if when players buy the upgrate their life will increase


//*******************************************************************/
//Super jump
//Players will be able to jump farther, paying a small amount of health

sm_zm_jump_start 30.0      //How much power the player will start with
sm_zm_jump_power 18.0      //How much power per level the jump will have
sm_zm_jump_upmulti 0.15    //How much power will go to the Z axis
sm_zm_jump_health 1.0      //How much life player will lose per use
sm_zm_jump_healthlevel 0.0 //How much extra life player will lose per level


//*******************************************************************/
//Damage iginite
//There is a change of NPCs get iginitied if player get hit

sm_zm_fire_distancestart 24.0 //The disatance that fire will afect to
sm_zm_fire_distancelevel 8.0  //The disatance that fire distance will increase for each level
sm_zm_fire_probality 23       //What is the probability of player actually igining the entity
sm_zm_fire_probabilitylevel 1 //How much the probability will decrease for each level
sm_zm_fire_time 3.0           //Time zombie will burn
sm_zm_fire_timelevel 0.25     //Time zombie will burn increasiment per level
sm_zm_fire_ondeath 4 //The probability of zombies getting on fire when players die
Commands
  • say !zmmenu
  • say /zmmenu

Ideas & suggestion
  • Post them all here

ChangeLog
  • From Beta
    • Do not allow players to sleep in mid-air
    • Player not dying when life reaches to 0
  • February 26, 2008 (1.1)
    • Fixed possible memory leak
    • Reduced size of some strings
    • Decreased time loop of a timer
  • March 2, 2008 (1.2)
    • Fixed stupid array size D:
    • Fixed numbers not going to -1 (1.2.1)
  • March 07, 2008 (1.3)
    • Players not receiving screen flash
    • Players not dying with jump
Attached Files
File Type: zip upgrades1.1.zip (61.4 KB, 981 views)
File Type: zip upgrades1.2.1.zip (61.4 KB, 791 views)
File Type: zip upgrades1.3.0.zip (61.5 KB, 2118 views)
__________________
http://www.nican132.com
I require reputation!

Last edited by psychonic; 03-23-2010 at 12:23. Reason: Reason: changed "game" field to newly created category "Zombie Master"
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican