Raised This Month: $12 Target: $400
 3% 

ExtraLevels 3 (v1.3.6d)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   Fun Stuff        Approver:   BAILOPAN (72)
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 07-09-2005 , 21:45   ExtraLevels 3 (v1.3.6d) + MM version (0.7.7f)
Reply With Quote #1

Code:
/*
*	Allows players to go above Level 10 in Combat, and adds 12 new upgrades (6 for Marines, 6 for Aliens)
*
* Author:
*	-> White Panther
*
* Credits:
*	-> Cheesy Peteza					-	his ExtraLevels plugin
*	-> Cheeserm! (alias Silent Skulk)			-	ExtraLevels2 (his advancements to ExtraLevels)
*	-> Depot						-	his assistance in getting bugs fixed
*	-> [I-AM]Xman						-	his assistance in getting bugs fixed
*	-> nf.crew | DeAtH07 and his clan			-	his/their assistance in getting bugs fixed
*	-> Bailey "Zed" Dickens and NSWarGames.com Community	-	his/their assistance in getting bugs fixed
*
* Usage:
*	-> say "xmenu" or "/xmenu" to bring up a menu of extra upgrades
*	-> say "/xhelp" to bring up a menu with some information
*	-> amx_maxlevel		-	Set to the highest level you want to allow (default 50)
*
*	Version 0.7.8b "ExtraLevels 2 Rework" is a rework of the plugin "ExtraLevels 2" based on Cheeserm!'s "ExtraLevels 2 v1.7e" (28.01.05)
*	With version 1.2.0 its name has changed from "ExtraLevels 2 Rework" to "ExtraLevels 3"
*
* v0.7.8b: (compatability for Gnome 0.6.3b or higher)
*	- fixed:
*		- 5 defines removed (unnecessary) and all associated coding removed or modified (PV_EXPERIENCE compilation error)
*		- Rejoin bug exploit has been removed. Players who now retry start from scratch
*		- Weld issue fixed in "public weldoverbasemax(id)" section (Cheeserm fixed incorrectly in 1.7e)
*		- when player with Staticfield was spectating, Staticfield worked as if the spectated player had it
*		- when self welding the sound now stops when finished
*		- problem where no extrapoints were given (should be fixed)
*		- aliens with hunger could get a higher health boost than defined in "HUNGERHEALTH"
*		- incorrect display of next level staticfield and etherealtracking (++)
*		- some sounds not being precached and wrong/unnecessary sounds being used
*		- ethereal shift acting as one level lower than player has
*	- added:
*		- Gnome compatability (95 %)
*		- Gnome gets a reduced speed bonus
*		- when welding over max base armor there is a weld sound
*		- SHIFTCLASSMULTI define: skulk, gorge and lerk SHIFTLEVEL gets multiplied by it (eg: level 5 time: old = 2,25 / new = 3,50)
*		- player now only get as many points as he can spent
*	- changed:
*		- many code improvements (~600 lines saved, removed 16 timers and added 1, ...)
*		- selfweld sound system (1 sound constant + 1 sound every selfweld-time is done) (old: every selfweld-time 1 random sound out of 2)
*		- onos can now do etherealshift (can be turned off with a define)
*		- rewritten the XP system, it is now dynamic and only the cvar "amx_maxlevel" blocks you from getting higher levels
*		- point giving system (improved/removed unnecessary/reworked code) (+++)
*
* v0.7.9:
*	- changed:
*		- moved from pev/set_pev to entity_get/entity_set (no fakemeta)
*
* v0.8.2b:
*	- fixed:
*		- the health addition to HUNGER upgrade was not correctly calculated, "HUNGERHEALTH" should be +x% but was +HP/x (eg HUNGERHEALTH = 100 and maxhp = 100, normally 100+100 but was 100+1)
*	- added:
*		- a define for NS version cause of the armor bonus in 3.03
*		- check for GorgZilla
*	- changed:
*		- many code improvements ( ~60 lines saved, performance, code cleaning)
*
* v0.8.5:
*	- fixed:
*		- selfhealing sound for aliens did not stop after reaching maximum health
*	- changed:
*		- rewritten the menu code ( now there are 2 menus instead of 6 )
*		- many code improvements ( ~180 lines saved, code cleaning )
*
* v0.8.7:
*	- fixed:
*		- while spectating the hud message was messed up
*		- when "amx_huddisplay" was set to 1 hud message has not been set before reaching lvl 11, now it starts with lvl 10
*	- changed:
*		- code improvements
*
* v0.8.8:
*	- fixed:
*		- rare bug where percentage to next level was negative
*
* v0.8.9:
*	- changed:
*		- server_frame is hooked with ent and support other plugins that uses the same system (speed improvement THANKS OneEyed)
*		- code improvements
*
* v0.9.6b:
*	- fixed:
*		- no XP display shown when spawned untill you earned some XP (eg: killed someone)
*		- Bloodlust is now calculated correctly ( no super bloodlust)
*		- Bloodlust is now given every 0.1 seconds instead of server frame (prevents 2nd calculation mistake)
*		- exploit where you kept extra upgrades after going to readyroom
*	- added:
*		- possiblility to customize XP (up to level 10 it is not changable)
*		- new upgrades (marines: Uranium Ammo / aliens: Sense of Ancients)
*	- changed:
*		- adjusted menu so it is not overlapping with chat anymore
*		- percentage is now shown as a float
*		- cosmetic improvemts to menu
*		- removed unneeded include
*		- menu now displays current- / max- level of each upgrade
*		- code improvements
*		- Rank names are now dynamically set (depending on max level when map starts)
*
* v1.0.0:
*	- fixed:
*		- players with cybernetics do not get little extra speed boost anymore
*		- regeneration has now correct sound (not metabolize anymore)
*		- health gained by hive regeneration is now correct
*		- distance to get hive regeneration has been corrected
*		- hive now only healths thickened skin when normal health reached (not when health was below anymore)
*		- lerks base health corrected
*		- possible exploits with ResetHUD event
*	- added:
*		- Sense of Ancients for gestating aliens (armor bonus)
*		- aliens are now gestating when extra upgrade has been choosen
*	- changed:
*		- removed some unneeded code
*		- code improvements
*
* v1.2.0:
*	- fixed:
*		- level hud display was not removed when spectating level 11++ and then someone below level 10
*		- calculation bug with max levels for each upgrade (THANKS peachy)
*		- when reaching max lvl (default lvl 50) no point has been given (using cheats to directly get lvl 50 = player got no points)
*		- when player reached max level, a level up sound was playing when reached next level (eg: level 50 (= max level) and got enough XP for level 51, sound was played ) (plugin is internally counting levels over maxlevel)
*		- Sense of Ancients "Multi Devour", you needed to finish devouring all players before you could use devour again, now working correctly so you can devour next player right after one is finished
*		- "EV_FL_max_health" / "pev_max_health" is now set for aliens, so other plugins easily find out what is max health for this player
*		- display of XP and level does not vanish anymore
*		- focus was counted as a 1 point upgrade and therefor it was possible that aliens did not get all possilbe points with special settings
*		- support for NS 3.1.2
*		- when player lost XP below level 10, HUD text was not removed (with amx_huddisplay = 1)
*		- players could get Static Field without Motion Tracking (THANKS PulsateX)
*		- Onos gestating in small areas will not get stuck that easy anymore
*		- Sense of Ancients "Multi Devour" was not reseted correctly when player left team
*		- "Ethereal Shift" was not working correctly, either "laggy" (shift started and one second later invisible ) or during cloak you did not became invisible
*		- exploit where player could keep upgrades
*	- added:
*		- new upgrade: "Advanced Ammopack" will allow marines to carry more ammo and have bigger clips
*		- when looking at a player the info box now shows correct level (eg: not level 10 even if being level 16)
*		- ability to use config file ("addons/amxmodx/configs/extralevels3.cfg")
*		- XP gain has been advanced, limit is not level 10 (max 170 XP for a lvl 10 enemy) but "max_level" (eg: lvl 20 = 270 XP for a lvl 20 enemy)
*		- Sense of Ancients "Multi Devour" now giving XP when digesting more than one player
*		- info for people who still using old menu command
*		- SHIFTDELAY setting: how long alien needs to wait between 2 shitfs. added to prevents exploits (THANKS Antecedent for notice)
*		- little support for "Lerkspike" so Lerks will not lose it when gestating
*	- changed:
*		- "ExtraLevels2 Rework" is now called "ExtraLevels 3" (should have been done with 1.0.0 but forgot :P)
*		- "Ethereal Tracking" has been replaced with "Advanced Ammopack"
*		- max level is not set to infinite via 0 (zero) but by the number you like (0 was infinite = 999, but now you can use bigger numbers)
*		- XP System: old and new one can be used (set via define or configfile) (old = based on killer level / new = based on victim level)
*		- cloaked aliens are not affected by "Static Field"
*		- during "Ethereal Shift" normal CLOAK upgrade is deactivated so scan will not try to detect a player as it cannot uncloak him
*		- removed support for old armor using NS 3.0.3 or lower
*		- menu adjustment for disabled upgrades (new: player cannot try to buy them anymore, old: player bought and got a message that it was disabled)
*		- "Static Field" is now weakening less HP but therefor also AP
*		- "Static Field" is now executed every two seconds instead of every second
*		- adjusted some default values
*		- many code improvements
*		- many speed improvements
*
* v1.2.2:
*	- fixed:
*		- bug where server could crash
*		- shotgun could get more extra ammo than allowed
*		- runtime error
*		- problems where player was sometimes unable to reload
*		- Sense of Ancients "Multi Devour" was not working due to little bug
*		- Sense of Ancients Fade upgrade was not working
*		- bug where HUD message was not displayed when reached level 50
*	-changed:
*		- little code tweak
*
* v1.2.5b: (compatability for Gnome 0.7.8 or higher / older Gnome versions will not work)
*	- fixed:
*		- exploit where player could get two upgrades with one gestate (only saved some time, but no point winning)
*		- GL was only reloading when having three or less ammo
*		- Hunger is now considered for "Static Field" calculation
*		- log is not spammed anymore
*		- HP bug with gestating and thickened skin
*	- added:
*		- better resupply compatability with Gnome
*	- changed:
*		- entity_get/set_xxx replaced with pev/set_pev ( performance )
*		- new way of communication with Gnome
*		- improved method to recognize resupply
*		- "Static Field" now requires Scan Area
*		- code tweaks
*
* v1.3.0: (compatability for Gnome 0.8.2 or higher / older Gnome versions will be buggy)
*	- fixed:
*		- when diing while having Hunger, player could keep speed
*		- gestate could take 0 seconds
*		- thickened skin could be not recognized and wierd HP activity due to 0 seconds gestate
*		- when reloading GL with Adv Ammo and below level 10 no message about reloading was shown
*		- devoured players could get stuck in onos
*		- players being digested could be killed when onos redeemed without a reason
*		- players could get godmode during gestation
*		- player could respawn with old class ( eg: lerk )
*		- when gestating 4th hive upgrade could be still purchased
*		- Hunger was not reset on new round
*	- added:
*		- players now see when Ethereal Shift starts and ends
*		- players now see if they have been infected by another player cause of SoA parasite
*		- native for other plugins to get player level ( usage: new level = EL_get_level(id) )
*		- new upgrade: "Acidic Vengeance" will make aliens to explode when being killed and damaging all nearby enemies
*		- players can now exactly see how many points they can spend
*	- changed:
*		- aliens are not affected by staticfield during ethereal shift anymore
*		- rewrote level/experience calculation
*		- modification to custom levels/EXP
*		- Bloodlust for Onos only applies for 33%
*		- moved from server_frame_fake to real server_frame ( speed difference is not noticeable and will save one entity )
*		- already parasited players will not spread parasite when being it with SoA parasite
*		- removed support for old experience system ( NS internal EXP system is incorrect )
*		- new message functions for better support for other plugs
*		- code optimization
*
* v1.3.0b:
*	- fixed:
*		- "Acidic Vengeance" could do more damage than specified ( could kill full HP/AP players )
*
* v1.3.5:
*	- fixed:
*		- when player reached last level ( default 50 ) extra HUD messages where bugged
*		- Onos being able to gestate while devouring ( thx schnitzelmaker )
*		- gestating players could stay gestate and not being able to be killed
*		- crash bug with StatusValue
*		- a bit too much EXP was given
*		- Ethereal Shift:
*			- time could keep counting even if dead
*			- Config for level requirement was ignored
*			- delay time was ignored
*		- Hunger:
*			- hungertime is now current level and not level - 1 anymore
*		- Advanced Ammo:
*			- fixed several reloading bugs
*		- Staticfield:
*			- cloaked aliens have still been included into calculation
*			- range is now current level and not level - 1 anymore
*			- menu now shows correct percentage value
*		- Acidic Vengeance:
*			- possible bug that was trying to kill player who started Acidic Vengeance again
*		- Sense of Ancients:
*			- healingspray now has correct value ( was 15.6 now is 13.0 )
*	- addded:
*		- when Helper is loaded, notify and information are only shown once
*		- Ban System to ban players from buying upgrades
*	- changed:
*		- improved calculation ( thx peachy )
*		- Custom XP System reversed to v1.2.5b
*		- Advanced Ammo:
*			- partly rewritten
*		- Hunger:
*			- speed bonus is not multiplied by Hunger level anymore
*			- hunger bonus HP for Staticfield is not used as increaser of maxHP anymore (old: maxStaticHP = maxHP + hungerHP , new: maxStaticHP = maxHP or currentHP if bigger maxHP )
*		- Sense of Ancients:
*			- parasite chance now increases each level ( max 40% ) and range is constant ( it was constant anyway even if said different )
*			- decreased parasite time from 5 to 3 seconds
*			- increased range from 200.0 to 250.0
*			- each player has his own chance to get parasited ( if one player got infected it does not mean the rest in range will get infected too )
*
* v1.3.5b:
*	- fixed:
*		- runtime error
*
* v1.3.6:
*	- fixed:
*		- onos getting stuck after gestate
*		- client crashes
*		- Advanced Ammo:
*			- when reloading GL, players can no longer switch to another weapon and back to auto reload the GL
*		- Acidic Vengeance:
*			- mixed upgrade info
*	- added:
*		- Advanced Ammo:
*			- players now see amount of bullets when reloading Shotgun ( the NS display is buggy with AA )
*	- changed:
*		- plugin is now paused on none CO maps
*
* v1.3.6c:
*	- fixed:
*		- offsets for NS 3.2 final
*
* v1.3.6d:
*	- fixed:
*		- thickened skin for onos
*	- changed:
*		- max Health and Armor limitation of 999 points has been removed ( values higher 999 will make the display look wierd )
*/

#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <ns>
IMPORTANT:
1) i changed the say command to "xmenu" and "/xmenu" (this is more logical than menu )
( x = extra => xmenu = extramenu)
2) also changed help say command to "/xhelp"

If you have problems with level 10+ :

1 ) make sure you are running NS 3.2.x
2 ) make sure you have AmxModX 1.7.5 or better
3 ) make sure engine + fakemeta + ns modules are running
4 ) copy ns_const.inc to amxmodx/scripting/include
5 ) download the .sma and put it to amxmodx/scripting
6 ) compile the plugin (compile.exe) (delete compile.dat if it exists)
7 ) take the .ammx (amxmodx/scripting/compiled) and copy it to amxmodx/plugins

REPLACED by ExtraLevels 3 MetaMod version
(new features, more support)

Download "extralevels3_mm_077f.zip" (sourcecode is included).
Attached Files
File Type: sma Get Plugin or Get Source (extralevels3.sma - 4411 views - 186.6 KB)
File Type: zip extralevels3_mm_077f.zip (291.8 KB, 495 views)
__________________
alias White Panther

Last edited by karlos; 01-05-2018 at 08:26.
karlos is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 07-09-2005 , 21:51  
Reply With Quote #2

Nice Panther...

Havn't seen u around the bushes latly hmmm...
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 07-09-2005 , 23:34  
Reply With Quote #3

I have a request/suggestion. I have updated the extralevels2 by cheeserm so that the amount Bloodlust given for an onos is less than the other forms to prevent perma-charge onos, and I believe i changed it for this plugin so here is the code that could be added if you want?

Line 64
Code:
#define BLOODLUSTONOS		7		// Amount Blood lust is decresed by for onos
Line 473
Code:
// Blood Lust
			new onosclass = ns_get_class(id)
			if ( onosclass == CLASS_ONOS )
			{
				new Float:energy = entity_get_float(id, EV_FL_fuser3)
				energy += (( BLOODLUSTSPEED * g_bloodlustupgrade[id] ) / BLOODLUSTONOS )
				if ( energy > 1000.0 )
					energy = 1000.0
				entity_set_float(id, EV_FL_fuser3,energy)
			}
			else
			{
Line 492
Code:
			}
Edit: It works the value i have BLOODLUSTONOS set to is 7 so that gives him permacharge but as if he is attacking it will decrease the energy.
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
Siessen
Junior Member
Join Date: May 2004
Old 07-10-2005 , 06:39  
Reply With Quote #4

Since nsbeta 3.0.5 new .so is released no extralvls plugins will work anymore :s

anyone know why?

running hlds on a fedora c3 metamod-p23 amxx1.01 with just some basic extra plugins for combat.
Siessen is offline
Send a message via AIM to Siessen Send a message via MSN to Siessen
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 07-10-2005 , 08:45  
Reply With Quote #5

get the new ns module and it will work

look in this forum in the module section
u will find it
__________________
alias White Panther

Last edited by karlos; 07-10-2006 at 16:36.
karlos is offline
LizardKing
Member
Join Date: Sep 2004
Old 07-10-2005 , 18:11  
Reply With Quote #6

how bout you choose a catagory. it took me 5 minutes to figure out what mod this was for.
__________________
LizardKing is offline
Send a message via MSN to LizardKing
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 07-14-2005 , 14:39  
Reply With Quote #7

Update v0.8.7:
fixed:
- while spectating the hud message was messed up
- when "amx_huddisplay" was set to 1 hud message has not been set before reaching lvl 11, now it starts with lvl 10

changed:
- code improvements



@LizardKing:
i set the mod + category BUT
Code:
#include <ns>
this says all
__________________
alias White Panther
karlos is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 07-14-2005 , 21:44  
Reply With Quote #8

Update v0.8.8:
fixed:
- rare bug where percentage to next level was negative
__________________
alias White Panther
karlos is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 07-14-2005 , 21:46  
Reply With Quote #9

Quote:
Originally Posted by {[*G.C*
} Soloist]I have a request/suggestion. I have updated the extralevels2 by cheeserm so that the amount Bloodlust given for an onos is less than the other forms to prevent perma-charge onos, and I believe i changed it for this plugin so here is the code that could be added if you want?

Line 64
Code:
#define BLOODLUSTONOS		7		// Amount Blood lust is decresed by for onos
Line 473
Code:
// Blood Lust
			new onosclass = ns_get_class(id)
			if ( onosclass == CLASS_ONOS )
			{
				new Float:energy = entity_get_float(id, EV_FL_fuser3)
				energy += (( BLOODLUSTSPEED * g_bloodlustupgrade[id] ) / BLOODLUSTONOS )
				if ( energy > 1000.0 )
					energy = 1000.0
				entity_set_float(id, EV_FL_fuser3,energy)
			}
			else
			{
Line 492
Code:
			}
Edit: It works the value i have BLOODLUSTONOS set to is 7 so that gives him permacharge but as if he is attacking it will decrease the energy.
Karlos can you add this to the plugin or not?

Also a problem that I see is when you reach above level 10 the level number and percentage above the xp bar doesnt show up unless u have just killed someone or your attacking cc/hive, can that be fixed to always show up?
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 07-15-2005 , 06:11  
Reply With Quote #10

maybe i could add this to next release

the display is shown always, but other plugins can make a conflict as its only a hud message
__________________
alias White Panther
karlos is offline
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 03:27.


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