Raised This Month: $32 Target: $400
 8% 

Superhero: Source Development Release!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
API
Veteran Member
Join Date: May 2006
Old 07-19-2007 , 23:14   Superhero: Source Development Release!
Reply With Quote #1

I am proud to present, Superhero: Source. First off, I would like to thank {HOJ}Batman and JTP10181 for their development on the Superhero Mod for AMXModX, without his tremendous work, I would have never started on this plug-in. Also, everyone give BAILOPAN and the rest of the SourceMod development team a big hug for their spectacular progress on SourceMod the past couple of years.

This plugin may be referred to as either of the following: Superhero: Source, SH: Source.

Please note, this is a development release, it is fully working, but it is not considered complete. You may make suggestions and report bugs with this release either via this thread, or PM.

Superhero: Source
Written by Anthony Iacono

Gameplay
When you first join the server, you are given an amount of levels (see convar "sh_startlevel"). With these levels, you are allowed to choose the same amount of heroes to add to your arsenal. Each hero has a unique power, or advantage that will help you while playing. Remember, you aren't the only ones with powers. Now that you are ready to play, complete objectives and kill enemies to gain XP points to drive you closer to the next level.

Chat Commands
  • say /superherohelp
    Bring up a help menu with a list of in-game commands.
  • say /showmenu
    Bring up the hero selection menu.
  • say /herolist
    Bring up the list of heroes and their descriptions.
  • say /myheros
    Bring up a list of your heroes and their descriptions.
  • say /clearpowers
    Clear all your heroes so you can re-pick from scratch.
  • say /drop <partial hero name>
    Drop a hero so you can pick a new one.
  • say /playerskills
    Bring up a list of all players to figure out their skills.

Admin Commands
Please note, the admin permission flag is "r", or RCON.
  • sh_setxp <player> <value>
    Set a player's XP.
  • sh_givexp <player> <value>
    Give a player XP.
  • sh_removexp <player> <value>
    Remove some XP from a player.
  • sh_setlevel <player> <value>
    Set a player's level.
  • sh_givelevel <player>
    Give a player a single level.
  • sh_removelevel <player>
    Remove a single level from a player.

Console Variables
Please note that the file "cfg/sourcemod/superhero.cfg" is executed upon map load.
  • sh_savexp 0 / 1 (default: 1)
    Save XP? Use "0" if you do not want to save XP, use "1" if you do. The save method is configured through addons/sourcemod/configs/shsource.ini
  • sh_maxpowerbinds # (default: 3)
    The max amount of heroes a player can have that require +power binds.
  • sh_startlevel # (default: 4)
    The level that a newcomber to your server starts at.

Changelog
  • Version 0.8
    Initial release.

Directory Structure
  • sourcemod/
    • configs/
      • shsource.ini
    • gamedata/
      • plugin.shsource.txt
    • plugins/
      • SHSource.smx
      • superhero/ (this is where you put hero files, SH_*.smx)
    • scripting/
      • SHSource.sp
      • SHSource/
        • console.inc
        • events.inc
        • heroes.inc
        • hooks.inc
        • immunity.inc
        • menus.inc
        • messages.inc
        • mysql.inc
        • natives.inc
        • offsets.inc
        • playertracking.inc
        • SHSource.inc
        • SHSource_Interface.inc
        • xp.inc
      • SHSource_Interface.inc
    • translations/
      • plugin.shsource.txt

Installation Instructions
Extract the .zip file into your SourceMod directory. (By default, addons/sourcemod/)
Next go to the "extensions" forum and install "SHVector".
At this point you have the actual plug-in installed, but you do not have any heroes installed. See the other post for the hero pack. Remember, if you don't have the hero pack nothing will work! As of the post time, there isn't a hero pack release yet, but you can get heroes from the repository (http://svn.alliedmods.net/viewvc.cgi...uperherosource), which will compile fine.

Configuration
The default configuration file (sourcemod/configs/shsource.ini) looks as follows:
Code:
"SHSourceSettings"
{
	"options"
	{
		"savetype"			"mysql" // Use mysql or local
	}
	"mysqlsettings"
	{
		"host"				""
		"user"				""
		"pass"				""
		"database"			""
		"port"				"" // Leave blank for default
	}
	"levels"
	{
		"maxlevel"			"20" // What should be the max level a player can achieve?
		"longtime" // Configuration if sh_savexp is set to 1
		{
			"required_xp"		"0 100 200 400 800 1600 3200 6400 12800 25600 51200 61200 71200 81200 91200 101200 111200 121200 131200 141200 151200"
			"kill_xp"		"6 8 10 12 14 16 20 24 28 32 40 50 60 70 80 90 100 110 120 130 140"
		}
		"shorttime" // Configuration if sh_savexp is set to 0
		{
			"required_xp"		"0 100 300 600 1000 2500 4000 6000 8000 10000 12000 14000 16000 18000 20000 22000 24000 26000 28000 30000 32000"
			"kill_xp"		"60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400 420 440 450"
		}
	}
}
For the time being, if you use sh_savexp 1, you MUST USE MYSQL!

Updates
You will either get updates from this thread, or you can build code that hasn't been released to the public, accessible at the following repository: http://svn.alliedmods.net/viewvc.cgi...uperherosource

Developers?
If you are interesting in developing heroes, see the post "Superhero: Source, from the top!"

Code
All the code for this plug-in was developed by Anthony "PimpinJuice" Iacono, with small exceptions such as helper functions from SumGuy14's RPGx, there were like 2 of them. Concepts credit goes to vittu and the rest of the 1.6 community.

Credits
David "BAILOPAN" Anderson and the rest of the SourceMod developers
Freecode, {HOJ}Batman, and JTP10181 the creators of Superhero Mod for AMXModX (http://shero.rocks-hideout.com/index.php?page=credit)
vittu, current maintainer of SH plugin for 1.6
SumGuy14, a good friend and a fellow developer
SteamFriends staff, thanks for your support
Attached Files
File Type: zip shsource_0.8_development_release.zip (70.9 KB, 2891 views)
__________________

Last edited by API; 07-20-2007 at 02:05. Reason: shvector!!!
API is offline
Send a message via AIM to API
Prime
Member
Join Date: Jul 2007
Old 07-20-2007 , 00:15   Re: Superhero: Source Development Release!
Reply With Quote #2

COOOLLLL
Prime is offline
Old 07-20-2007, 17:04
Prime
This message has been deleted by Prime.
Prime
Member
Join Date: Jul 2007
Old 07-20-2007 , 19:45   Re: Superhero: Source Development Release!
Reply With Quote #4

How do you bind heros?
Prime is offline
API
Veteran Member
Join Date: May 2006
Old 07-20-2007 , 20:49   Re: Superhero: Source Development Release!
Reply With Quote #5

Prime, your heroes bind will be +power_shortname, but make sure you make parameter 5 of CreateHero be "1".
__________________
API is offline
Send a message via AIM to API
Prime
Member
Join Date: Jul 2007
Old 07-23-2007 , 20:07   Re: Superhero: Source Development Release!
Reply With Quote #6

Wait so the sh_savexp 1 command doesnt work yet?
Prime is offline
API
Veteran Member
Join Date: May 2006
Old 07-28-2007 , 14:34   Re: Superhero: Source Development Release!
Reply With Quote #7

It works but requires a MySQL database.
__________________
API is offline
Send a message via AIM to API
Diablo the Drunk
Junior Member
Join Date: Aug 2007
Old 08-19-2007 , 08:41   Re: Superhero: Source Development Release!
Reply With Quote #8

hey i have a MySQL database, i think. dbi.mysql.ext.dll is this the one? its in the cstrike\addons\sourcemod\extensions folder. yet the sh_savexp 1 still dosnt work, every time the map changes all the xp gets lost, same with when you exit the server and then rejoin. Any ideas? . thanks
ps everything else is working real good. you guys rock

Last edited by Diablo the Drunk; 08-19-2007 at 08:59.
Diablo the Drunk is offline
Solltex
Member
Join Date: Dec 2004
Old 08-23-2007 , 14:14   Re: Superhero: Source Development Release!
Reply With Quote #9

save xp by name or steamid?
Need for lan servers save xp by name.

Last edited by Solltex; 08-24-2007 at 14:04.
Solltex is offline
fikstress
Member
Join Date: Dec 2006
Location: Streets
Old 08-08-2007 , 11:52   Re: Superhero: Source Development Release!
Reply With Quote #10

this is so freaking hard to install -.- make a install guide or if it is maked give link pls ? =S
__________________
Hell was full, so i came back.
fikstress is offline
Send a message via ICQ to fikstress Send a message via MSN to fikstress
Reply



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 23:53.


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