Classic SuperHero Server Script Written By
Blazzingxx
===
[ Info ] ===

Version: 1.0
(Beta)

Release Date: 2010/03/12

Website:
http://sites.google.com/site/superhero2d/home
===
[ Script Features ] ===

=
[ General & Basics ] =

35 level ups for new items & heroes

Reliable levels & experience system

Usual heroes points system

Credits system for buying items

Advanced bad words system

=
[ Customizable Heroes Feature ] =
Superheroes File Path: "sys/lua/classic_superhero/sh_superheroes.cfg"

40 various heroes with different abilities
(Default)

New advanced heroes system

Configuration support

Heroes upgrading & removing system

Heroes configuration functions list:
More 
INFO has written:-- Basics & Requirements
01. #name=[Name] - Name
02. #info=["INFO"] - Description
03. #point=[PT] - Sets points requirement
04. #level=[LVL] - Level requirement
-- On Spawn
05. #health=[HP] - Health
06. #armor=[AP] - Armor
07. #speed=[SP] - Speed
08. #item=[ITEM ID] - Item
09. #spwn_info=["TEXT"] - Message
10. #sh_item=[HERO ID] - Gives SH Item
-- On Reloading
11. #noreload=[ITEM ID] - Skips reloading
-- On Selecting Hero
12. #sel_info=["TEXT"] - Message on selection
-- On Second Delays
13. #re_item=[ITEM ID]~[SEC] - Re-equiping item
14. #re_health=[HP]~[SEC] - Re-gaining health
15. #re_armor=[AP]~[SEC] - Re-gaining armor
16. #re_money=[MN]~[SEC] - Re-gaining money
Note: nb_ (In A Distance/Nearby)
17. #nb_health=[HP]~[SEC]~[RAD] - Team mates health
18. #nb_armor=[AP]~[SEC]~[RAD] - Team mates armor
19. #nb_money=[MN]~[SEC]~[RAD] - Team mates money
20. #nb_speed=[SP]~[SEC]~[RAD]~[S] - Team mates speed
21. #nb_info=["TEXT"]~[SEC]~[RAD] - Message for team mates
22. #e_nb_damage=[DMG]~[SEC]~[RAD] - Enemies health (damage)
23. #e_nb_money=[MN]~[SEC]~[RAD] - Enemies money
24. #e_nb_speed=[SP]~[SEC]~[RAD]~[S] - Enemies Speed
-- On Killing Enemy
25. #kill_health=[HP] - Your health
26. #kill_armor=[AP] - Your armor
27. #kill_money=[MN] - Your money
28. #kill_info=["TEXT"] - Message
29. #e_kill_money=[MN] - Enemy's Money
-- On Death (Killed By Enemy Only)
30. #die_money=[MN] - Your money
31. #die_explosion=[DAMAGE]~[SIZE] - Explosion
32. #die_info=["TEXT"] - Message For You
33. #e_die_health=[HP] - Killer's health
34. #e_die_armor=[AP] - Killer's armor
35. #e_die_money=[MN] - Killer's money
-- On Hit
36. #hit_money=[MN] - Your money
37. #e_hit_money=[MN] - Enemy money
38. #e_hit_speed=[SP]~[SEC] - Enemy speed
39. #damage1=[WPN]~[DMG] - Extra weapon damage
40. #damage2=[WPN]~[%DMG%] - Extra weapon damage (in percentage)
-- Images, Set On Spawn
41. #img_oval=["COLOR"]~[OVAL TYPE]~[ROT]~[P]~[RAD]~[FLOOR] - Loads oval image over/under player
-- SH Objects
42. #throw_grenade=["IMG|PATH"]~[WPN]~[SPEED]~[FLOOR]~[DMG|SIZE]~[STRIP]~[RADIUS]~[REMOTE] - Grenade/Mine/Explosive Object
43. #throw_weapon=["IMG|PATH"]~[WPN]~[SPEED]~[DMG|SIZE]~[STRIP]~[ROT] - Weapon/Flying Object
-- Adding Custom Scripting Into Heroes Hooks
44. #hook_spawn=["CODE"] - Adding scripts for spawn hook
--> p_id - Player ID
--> hero_id - Hero ID
45. #hook_kill=["CODE"] - - Adding scripts for kill hook
--> p_id - Player ID
--> v_id - Victim ID
--> hero_id - Hero ID
46. #hook_die=["CODE"] - Adding scripts for die hook
--> p_id - Player ID
--> k_id - Killer ID
--> hero_id - Hero ID
47. #hook_second=["CODE"] - Adding scripts for second hook
--> p_id - Player ID
--> hero_id - Hero ID
48. #hook_select=["CODE"] - Adding scripts for select hook
--> p_id - Player ID
--> hero_id - Hero ID
49. #hook_reload=["CODE"]- Adding scripts for reload hook
--> p_id - Player ID
--> hero_id - Hero ID
--> wpn_id - weapon ID
50. #hook_attack=["CODE"] - Adding scripts for attack hook
--> p_id - Player ID
--> hero_id - Hero ID
--> wpn_id - weapon ID
51. #hook_hit=["CODE"] - Adding scripts for hit hook
--> p_id - Player ID
--> v_id - Victim ID
--> hero_id - Hero ID
--> hero_lvl - Hero Level
--> hp_dmg - Healht Damage
--> ap_dmg - Armor Damage
52. #hook_build=["CODE"] - Adding scripts for build attemt hook
--> p_id - Player ID
--> hero_id - Hero ID
--> hero_lvl - Hero Level
--> type_id - Building Type ID
--> type_x - Building X pos
--> type_y - Building Y pos

Example of hero adding:
Code:1
#addhero : #name = SuperMan : #point = 1 : #info = Extra Health (10) : #health = 10

=
[ Customizable Items Feature ] =
Items File Path: "sys/lua/classic_superhero/sh_items.cfg"

20 various items
(Default)

New Items inventory system

Configuration support

Items buying & selling system

Menus for inventory, shop & market

Heroes configuration functions list:
More 
INFO has written:-- Basics & Requirements
01. #name=[Name] - Name
02. #info=["Info"] - Description
03. #credit=[CR] - Credits requirement
04. #level=[LVL] - Level requirement
05. #hero=[HERO ID] - Hero requirement
-- On Spawn
06. #health=[HP] - Health
07. #armor=[AP] - Armor
08. #speed=[SP] - Speed
09. #item=[ITEM ID] - Item
-- On Using Item
10. #use_health=[HP] - Use Event, health
11. #use_armor=[AP] - Use Event, armor
12. #use_speed=[SP]~[INCREASE|CHANGE] - Use Event, speed
13. #use_explosion=[SIZE]~[DAMAGE] - Use Event, explosion
14. #use_cancel=["TEXT"] - Cancel Use Event- Cancel "Use" event
15. #use_build=[ID] - Building from the list
-- Adding Custom Scripting Into Heroes Hooks
16. #hook_use=["CODE"] - Adding scripts for use event
--> p_id - Player ID
--> item_id - Item ID
17. #hook_spawn=["CODE"] - Adding scripts for spawn hook
--> p_id - Player ID
--> item_id - Item ID

Example of item adding:
Code:1
#additem : #name = Super Bomb II : #credit = 125 : #info = Medium Explosion : #use_explosion = 150 ~ 200

=
[ Customizable Buildings Feature ] =

3 Buildings Examples Included
(Default)

Building text drawing support

Special buildings linking to items

=
[ Weapons Round Feature ] =
Weapon Rounds File Path: "sys/lua/classic_superhero/sh_rounds.cfg"

Randomized weapon rounds

Configuration support

Few weapons in one round
(using commas in configuration)

Example of M4A1 & Deagle adding in one round:

=
[ Members Feature ] =
Members File Path: "sys/lua/classic_superhero/sh_members.cfg"

Different members say color

Configuration support

Member adding have 1 mark & 4 states:
->
#addmember -
adding verification
-->
[USGN] -
U.S.G.N ID
-->
[NAME] -
Name
-->
[RANK] -
Rank name
-->
[COLOR] -
RGB color

Example of member adding:
Code:1
#addmember : 1 : DC : Game Author :000255000

=
[ Say Commands ] =

26 say commands are included
More 
List has written:
01. !help -
Main SuperHero Menu
02. !commands -
Say Commands List
03. !console -
List Of Console Commands
04. !reheroes -
Remove Your Powers
05. !heroes -
Select Your Powers
06. !register <name> <password> -
Create CSH User
07. !login <name> <password> -
Login With CSH User
08. !logout -
Logout From CSH User
09. !myheroes -
List Of Selected Heroes
10. !mystats -
Your Stats
11. !whatstats <id > -
Watch Other Player Stats
12. !whatheroes <id> -
Watch Other Player's Heroes
13. !whohas <hero> -
Shows Who Has Specified Hero
14. !reset -
Resets Your Stats
15. !givecr <id> <cr> -
Give Your Own Credits
16. !heroeslist -
List Of Heroes
17. !myitems -
Your Items List
18. !clearheroes -
Remove All Your Heroes
19. !members -
Server Members List
20. !playerslist -
List Of Players On Server
21. !roundlist -
List Of Weapon Rounds
22. !market -
Sell Items
23. !shop -
Buy Items
24. !inventory -
Your Inventory
25. !helpon -
Show Help
26. !helpoff -
Hide Help

=
[ Console Commands ] =

17 console commands are included

Console commands are only available for Admin or Rcon users
More 
List has written:
01. sh_list_players -
Players List
02. sh_list_heroes -
Heroes List
03. sh_list_items -
Items List
04. sh_list_config -
Config Functions List
05. sh_list_console -
Console Commands List
06. sh_list_functions -
SuperHero Functions List
07. sh_list_lua -
Lua Table Class List
08. sh_list_say -
Say Commands List
09. sh_give_pt <id> <pt> -
Give Points For Player (temporary)
10. sh_give_xp <id> <xp> -
Give Experience For Player
11. sh_give_lvl <id> <lvl> -
Give Level For Player
12. sh_give_all_credits <cr> -
Give Credits For All
13. sh_give_credits <id> <cr> -
Give Credits For Player
14. sh_set_all_credits <cr> -
Set Credits For All
15. sh_set_lvl <id> <lvl> -
Set Level For Player
16. sh_set_xp <id> <xp> -
Set Experience For Player
17. sh_set_credits <id> <cr> -
Set Credits For Player

=
[ Save & Load Feature ] =
Note: Most of saving features can be managed through configuration
U.S.G.N and SuperHero users saves are available

Improved player stats saving
(Level, Experience, Points & Credits)

Advanced heroes & items saving

Server can have thousands of saves, it shouldn't slow down server

=
[ Extra Experience Feature ] =
Note: This feature can be changed using configuration.

Extra experience for:
->

Killing higher level player
->

Winning a round
->

Killing in a row
->

Knifing player
->

Planting a bomb
->

Defusing a bomb
->

Dominating flags
->

Capturing the flag

=
[ Hudtxt & Messages Feature ] =

Short & readable notices|messages

Well looking colors

=
[ Advanced Sounds ] =

Few SuperHero sounds
->

Winning round
->

Losing round
->

Level up

=
[ Advanced Configuration Feature ] =

New syntax support for heroes, items, rounds, members configuration
"#" -
[i]SuperHero function verification
"=" -
Separates SuperHero function and it's parameters
"~" -
Separates function parameters
">" -
Hero leveling verification

6 Main Functions:
->

1
#addhero -
Sets line for hero adding
->

2.
#additem -
Sets line for item adding
->

3.
#addround -
Sets line for round adding
->

4.
#addbuilding -
Sets line for building adding
->

5.
#addmember -
Sets line for member adding
->

6.
#path -
Opens file (path) for other heroes initializing

50 functions for heroes customization

15 functions for items customization

=
[ General Configuration Feature ] =
Configuration File Path: "sys/lua/classic_superhero/sh_config.cfg"
Settings File Path: "sys/lua/classic_superhero/sh_settings.cfg"

44 configuration options to change

You can easily modify features

You can turn on/off many features
More 
List has written:01. sh_weaponrounds - Weapon Rounds Feature ( 1 - ON ; 0 - OFF )
02. sh_con_hero_add - Adding Heroes With Console Feature ( 1 - ON ; 0 - OFF )
03. sh_badwords - Bad Words Feature ( 1 - ON ; 0 - OFF )
04. sh_say - Say Commands Feature ( 1 - ON ; 0 - OFF )
05. sh_quake - Quake & Unreal Tournament Feature ( 1 - ON ; 0 - OFF )
06. sh_console - Console Commands Feature ( 1 - ON ; 0 - OFF )
07. sh_config_success - Config Success Notes In Console ( 1 - ON ; 0 - OFF )
08. sh_item_taking - Items Taking ( 1 - ON ; 0 - OFF )
09. sh_item_droping - Items Droping ( 1 - ON ; 0 - OFF )
10. sh_item_buying - Items Buying ( 1 - ON ; 0 - OFF )
11. sh_sound - Advanced SuperHero Sounds ( 1 - ON ; 0 - OFF )
12. sh_sound_quake - Quake & Unreal Tournament Sounds ( 1 - ON ; 0 - OFF )
13. sh_join_msg - Server Join Message ( 1 - ON ; 0 - OFF )
14. sh_lvl_start - Starting Level ( 1 LVL - MAX LVL )
15. sh_lvl_ratio - Level Ratio ( 50 XP - 5000 XP )
16. sh_lvl_max - Max Level ( 5 LVL - 55 LVL )
17. sh_xp_start - Experience At Start ( 0 XP - 15000 XP )
18. sh_xp_kill - Experience Per Kill ( 1 XP - 1250 XP )
19. sh_credit_start - Credits At Start ( 0 CR - MAX CR )
20. sh_credits_kill - Credits Per Kill ( 1 CR - 1250 CR )
21. sh_pt_start - Points At Start ( 0 PT - MAX PT )
22. sh_pt_lvl - Points Per Level ( 1 PT - 5 PT )
23. sh_credits_max - Limit Of Credits In "Hand" ( 50 CR - INF )
24. sh_unlock_msg - Hero Unlocking Message ( 1 - ON ; 0 - OFF )
25. sh_max_heroes - Max Ammount Of Heroes In The List ( 15 HEROES - 100 HEROES )
26. sh_max_items - Max Ammount Of Items In The List ( 15 ITEMS - 100 ITEMS )
27. sh_player_hp - Player Health ( 100 HP - DEFAULT )
28. sh_player_ap - Player Armor ( 50 AP - DEFAULT )
29. sh_player_sp - Player Speed ( 0 SP - DEFAULT )
30. sh_extra_xp_bombplant - Experience On Bomb Planting ( 0 XP - 500 XP )
31. sh_extra_xp_bombdefuse - Experience On Bomb Defusing ( 0 XP - 500 XP )
32. sh_extra_xp_dominate - Experience On Dominating Bomb ( 0 XP - 500 XP )
33. sh_extra_xp_flagcapture - Experience On Capturing The Flag ( 0 XP - 500 XP )
34. sh_extra_xp_higher - Experience For Killing Higher Level Player ( 0 XP - 500 XP * Level Difference )
35. sh_extra_xp_winner - Experience For Winning A Round ( 0 XP - 1000 XP )
36. sh_extra_xp_inrow - Experience For Killing In A Row ( 0 XP - 500 XP * Multiple Kill )
37. sh_extra_xp_knife - Experience For Killing With Knife ( 0 XP - 500 XP )
38. sh_save_heroes - Save Heroes For U.S.G.N/CSH Users ( 1 - ON ; 0 - OFF )
39. sh_save_items - Save Items For U.S.G.N/CSH Users ( 1 - ON ; 0 - OFF )
40. sh_save_mapchange - Bonus Auto Save On Mapchange ( 1 - ON ; 0 - OFF )
41. sh_members - Admin/Members Feature ( 1 - ON ; 0 - OFF )
42. sh_objects - SH Objects Feature ( 1 - ON ; 0 - OFF )
43. sh_objects_idle - Idle Time To Remove Object From Area ( 1 ms - 1000 ms ( 10X ) )
44. sh_oval_alpha - Hero Circle Alpha ( 0 % - 100 % )

=
[ Serveractions & Menus Feature ] =

1st,
[F2] - Shows SuperHero main menu

2st,
[F3] - Items Menu

3rd,
[F4] - Hide main help file

=
[ SH Objects Feature ] =

Collisions with players

Collisions with walls

Explosions

Weapon throwing simulation

Image functions fix and more

=
[ Quake/Unreal Tournament Feature ] =

Quake/UT sounds

Multiple kill messages

Knife kill
(Humiliation)

=
[ Help Feature ] =

Website:
http://sites.google.com/site/superhero2d/home
===
[ Installation | How To Use ] ===

Extract downloaded script file.zip in CS2D folder.

If there are some questions, contact me.
===
[ Special Thanks To ] ===
Leegao -
For sharing his few scripts & giving few ideas
Roni -
For testing script & running server
DC -
For wonderful game & helping me to avoid CS2D Bugs
Sarim -
For fixing & checking spelling mistakes
Jonzku777 -
For ideas & activity in CSH suggestions thread
Skipper -
For help with superheroes balance & testing
tRay -
For hosting public SuperHero (test) server
And Everyone Else Who Were Involved In The Development!
===
[ Contacts ] ===

Unreal Software User:
http://unrealsoftware.de/profile.php?userid=5537

U.S.G.N :
15811

E-Mail :
- E-Mail address (visible to registered users only) -

Website:
http://sites.google.com/site/superhero2d/home