AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ZM] RPG mod (https://forums.alliedmods.net/showthread.php?t=67488)

Nican 02-24-2008 21:28

[ZM] RPG mod
 
4 Attachment(s)
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

cozmicshredder 02-24-2008 21:45

Re: [ZM] RPG mod
 
This works great we tested it several times on our servers!

pRED* 02-25-2008 01:57

Re: [ZM] RPG mod
 
Nice work Nican. "Upgrates". heh.

Approved.

smitti 02-25-2008 09:11

Re: [ZM] RPG mod
 
Hi Nican!

Some errors compile plugin to sourcemod-r1904!

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

cu
smitti

Nican 02-25-2008 15:15

Re: [ZM] RPG mod
 
Make sure you passed all the files in the zip in "\addons\sourcemod\scripting\" including the two folders.

smitti 02-25-2008 16:59

Re: [ZM] RPG mod
 
Hi!

Thank´s for Replay. :)

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

cu
smitti

Nican 02-26-2008 21:14

Re: [ZM] RPG mod
 
Update! could anyone try 1.1?

JHoersten2 02-26-2008 22:42

Re: [ZM] RPG mod
 
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.

JHoersten2 02-27-2008 00:18

Re: [ZM] RPG mod
 
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

cozmicshredder 03-01-2008 09:45

Re: [ZM] RPG mod
 
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:00:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/01/2008 - 00:00:36: [SM] Displaying call stack trace for plugin "zmupgrades.smx":
L 03/01/2008 - 00:00:36: [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":


All times are GMT -4. The time now is 16:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.