AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Announcements (https://forums.alliedmods.net/forumdisplay.php?f=120)
-   -   Superhero: Source Development Release! (https://forums.alliedmods.net/showthread.php?t=58143)

API 07-19-2007 23:14

Superhero: Source Development Release!
 
1 Attachment(s)
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

Prime 07-20-2007 00:15

Re: Superhero: Source Development Release!
 
COOOLLLL

Prime 07-20-2007 19:45

Re: Superhero: Source Development Release!
 
How do you bind heros?

API 07-20-2007 20:49

Re: Superhero: Source Development Release!
 
Prime, your heroes bind will be +power_shortname, but make sure you make parameter 5 of CreateHero be "1".

Prime 07-23-2007 20:07

Re: Superhero: Source Development Release!
 
Wait so the sh_savexp 1 command doesnt work yet?

API 07-28-2007 14:34

Re: Superhero: Source Development Release!
 
It works but requires a MySQL database.

fikstress 08-08-2007 11:52

Re: Superhero: Source Development Release!
 
this is so freaking hard to install -.- make a install guide or if it is maked give link pls ? =S

1sh0t2killz 08-13-2007 20:27

Re: Superhero: Source Development Release!
 
great job on this.
I thought it was pretty easy to install if you read the simple instructions up there. I even tested it on my own computer (with bots) and it ran fine =)

Diablo the Drunk 08-15-2007 07:26

Re: Superhero: Source Development Release!
 
Quote:

Originally Posted by pimpinjuice (Post 505629)
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

yo . under the sub headding Directory Structure plugins/
  • SHSource.smx
  • superhero/ (this is where you put hero files, SH_*.smx)
    the only heroes i have are the ones off your link which are sp files not smx files. do i have to change them and also is that why my server freezez when i type in herolist. thanks

sumguy14 08-15-2007 12:13

Re: Superhero: Source Development Release!
 
You need to compile the .sp files released by other people with your own compiler. SHSource needs to be installedfor the compiling to work right (which is why the web compiler doesn't work)

addons/sourcemod/scripting/spcomp.exe

Use that program to compile the .sp

cmd prompt

Quote:

C:\bleh\cstrike\addons\sourcemod\scripting\spcomp "path to sp"
The .smx will be in the scripting folder, just move it to superheros/

It's probably crashing because you don't have any heroes installed. (Correctly)


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

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