Raised This Month: $182 Target: $400
 45% 

[ZM] RPG mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Plugin ID:
295
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Zombie Master
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Zombie master upgrades
    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, 713 views)
    File Type: zip upgrades1.2.1.zip (61.4 KB, 543 views)
    File Type: zip upgrades1.3.0.zip (61.5 KB, 1773 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
    cozmicshredder
    SourceMod Donor
    Join Date: Apr 2004
    Location: MI, USA.
    Old 02-24-2008 , 21:45   Re: [ZM] RPG mod
    Reply With Quote #2

    This works great we tested it several times on our servers!
    __________________
    cozmicshredder is offline
    Send a message via ICQ to cozmicshredder Send a message via AIM to cozmicshredder Send a message via MSN to cozmicshredder Send a message via Yahoo to cozmicshredder Send a message via Skype™ to cozmicshredder
    pRED*
    Join Date: Dec 2006
    Old 02-25-2008 , 01:57   Re: [ZM] RPG mod
    Reply With Quote #3

    Nice work Nican. "Upgrates". heh.

    Approved.
    pRED* is offline
    smitti
    New Member
    Join Date: Dec 2006
    Old 02-25-2008 , 09:11   Re: [ZM] RPG mod
    Reply With Quote #4

    Hi Nican!

    Some errors compile plugin to sourcemod-r1904!

    zmupgrades.sp(67) : fatal error 120: cannot read from file: "..\ZMup\init"

    cu
    smitti
    smitti is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 02-25-2008 , 15:15   Re: [ZM] RPG mod
    Reply With Quote #5

    Make sure you passed all the files in the zip in "\addons\sourcemod\scripting\" including the two folders.
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    smitti
    New Member
    Join Date: Dec 2006
    Old 02-25-2008 , 16:59   Re: [ZM] RPG mod
    Reply With Quote #6

    Hi!

    Thank´s for Replay.

    But Plugin not working on my Server.
    See Error Code.

    cu
    smitti
    smitti is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 02-26-2008 , 21:14   Re: [ZM] RPG mod
    Reply With Quote #7

    Update! could anyone try 1.1?
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    JHoersten2
    Junior Member
    Join Date: Feb 2008
    Old 02-26-2008 , 22:42   Re: [ZM] RPG mod
    Reply With Quote #8

    I'm running it right now on "<|BZ|> MrJ's Toilet Bowl

    It works fine, although a few admin commands would be nice... perhaps

    set player level, so i can take someone down, or put someone up, depending on how i see fit.
    also, maybe a "clear database", if you want to reset everyone to 0.

    other than that, it works fairly nicely.

    Last edited by JHoersten2; 02-27-2008 at 11:44.
    JHoersten2 is offline
    JHoersten2
    Junior Member
    Join Date: Feb 2008
    Old 02-27-2008 , 00:18   Re: [ZM] RPG mod
    Reply With Quote #9

    L 02/26/2008 - 23:11:50: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/26/2008 - 23:11:50: [SM] Debug mode is not enabled for "zmupgrades.smx"
    L 02/26/2008 - 23:11:50: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 18 on

    L 02/26/2008 - 23:11:53: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/26/2008 - 23:11:53: [SM] Debug mode is not enabled for "zmupgrades.smx"
    L 02/26/2008 - 23:11:53: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 18 on

    L 02/26/2008 - 23:11:57: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/26/2008 - 23:11:57: [SM] Debug mode is not enabled for "zmupgrades.smx"
    L 02/26/2008 - 23:11:57: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 18 on

    L 02/26/2008 - 23:11:59: [SM] Plugin encountered error 15: Array index is out of bounds
    L 02/26/2008 - 23:11:59: [SM] Debug mode is not enabled for "zmupgrades.smx"
    L 02/26/2008 - 23:11:59: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 18 on
    JHoersten2 is offline
    cozmicshredder
    SourceMod Donor
    Join Date: Apr 2004
    Location: MI, USA.
    Old 03-01-2008 , 09:45   Re: [ZM] RPG mod
    Reply With Quote #10

    ZmUpgrades 1.1 Debuging Issues

    L 03/01/2008 - 00:00:02: [SM] Plugin encountered error 15: Array index is out of bounds
    L 03/01/2008 - 00:00:02: [SM] Displaying call stack trace for plugin "zmupgrades.smx":
    L 03/01/2008 - 00:00:02: [SM] [0] Line 24, HL2Servers\zombie_master\addons\sourcemod\scr ipting\include\..\ZMup\menu.inc::Command_Say( )
    L 03/01/2008 - 00:00:15: [SM] Plugin encountered error 15: Array index is out of bounds
    L 03/01/2008 - 00:00:15: [SM] Displaying call stack trace for plugin "zmupgrades.smx":
    L 03/01/2008 - 00:00:15: [SM] [0] Line 24, HL2Servers\zombie_master\addons\sourcemod\scr ipting\include\..\ZMup\menu.inc::Command_Say( )
    L 03/01/2008 - 00:006: [SM] Plugin encountered error 15: Array index is out of bounds
    L 03/01/2008 - 00:006: [SM] Displaying call stack trace for plugin "zmupgrades.smx":
    L 03/01/2008 - 00:006: [SM] [0] Line 24, HL2Servers\zombie_master\addons\sourcemod\scr ipting\include\..\ZMup\menu.inc::Command_Say( )
    L 03/01/2008 - 00:00:51: [SM] Plugin encountered error 15: Array index is out of bounds
    L 03/01/2008 - 00:00:51: [SM] Displaying call stack trace for plugin "zmupgrades.smx":
    __________________
    cozmicshredder is offline
    Send a message via ICQ to cozmicshredder Send a message via AIM to cozmicshredder Send a message via MSN to cozmicshredder Send a message via Yahoo to cozmicshredder Send a message via Skype™ to cozmicshredder
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 14:35.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode