Raised This Month: $158 Target: $400
 39% 

Super Hero Module 2.002 & New Server


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-13-2006 , 01:39   Re: Super Hero Module 2.002 & New Server
#81

Just a suggestion. Instead of plugins having to keep track of their super hero id and then switching a bool to true and false to keep track if they have the hero or not, why not let the module do that (Still keeping the sh_hero_init() forward, so other heros can do some stuff during that time). Like you could just create a native has_hero(id), to check if a client has a plugin's hero. And for natives that require a hero id, all you would have to do is keep track of which plugin registered which hero, which, last time I looked at your guys code can easily be done .

I beleive I did this in a mod I was creating. I just used a const AMX *amx pointer and then scanned through my class table and see if the pointer matched up with the calling plugin's amx.

This way, it's simpler, and avoids other plugins from being able to change other hero data.
Of course this may be bad design :/, please tell me.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
guy
Senior Member
Join Date: Apr 2005
Old 08-14-2006 , 00:31   Re: Super Hero Module 2.002 & New Server
#82

Some bots would be kind of nice to make up for the lack of human population in the server =|
__________________
Call it, friendo.
guy is offline
alcatraaaz34
New Member
Join Date: Jul 2006
Old 08-14-2006 , 09:37   Re: Super Hero Module 2.002 & New Server
#83

i want to set the hero mod to lvl 20..but how??????
alcatraaaz34 is offline
Send a message via MSN to alcatraaaz34 Send a message via Skype™ to alcatraaaz34
Jonathan Young
Member
Join Date: Oct 2004
Location: Las Vegas, Nevada
Old 08-14-2006 , 13:34   Re: Super Hero Module 2.002 & New Server
#84

Quote:
Originally Posted by Freecode View Post

Cvars:
  1. sh_superhero - <1/0> Self-Explanatory. Turns mod on/off. Put this somewhere into you config file (server.cfg is fine)
  2. sh_numlevels - <#> (default = 10). Number of Max Levels. Put this somewhere into you config file (server.cfg is fine)
  3. sh_savexp - <1/0> Save XP points or not? (will save to binary file only). No MySQL support in this version.
  4. sh_saveby - <1/2> Save int binary by: 1. SteamID 2. Name
  5. sh_debug - <1/0> Will log debug messages. Only use when your server is crashing. Post your log file into forums to help us fix the crash.
  6. sh_hsmult - (Default 1.0). Headshot multiplier. Gain more XP for killing with Headshot.
Look at the red, put that in the amxx.cfg and set the number 20.
__________________
Sincerely,
Jonathan Young
Jonathan Young is offline
guy
Senior Member
Join Date: Apr 2005
Old 08-16-2006 , 23:02   Re: Super Hero Module 2.002 & New Server
#85

On the server "playerlevels" doesn't quite work for some reason. Also, the showmenu command sometimes causes a hidden radio3 [ie pressing 9 on the menu would turn the menu next, in addition to saying "Enemy Down" on the radio].
Just minor things. Seems fine so far.
__________________
Call it, friendo.
guy is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 08-20-2006 , 21:20   Re: Super Hero Module 2.002 & New Server
#86

note to self... get foot out of ass and help freecode
__________________
My Plugins

Got ??
AssKicR is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 08-21-2006 , 02:27   Re: Super Hero Module 2.002 & New Server
#87

oh u better!
Freecode is offline
aptmeatwad
New Member
Join Date: Sep 2006
Old 09-16-2006 , 21:14   Re: Super Hero Module 2.002 & New Server
#88

When i download everything and put it in its place, my hero list(where u get to pick ur heros) doesnt show up on my server. also i think some files are missing... the shconfig.cfg, and the file where u can set the xp per lvl and how much u get per kill. i would like an reply to this or tell me that im just being a dumbass and show me where they are. also a tutorial for set up just to make sure i did everything right would be nice (post a link if there is already one). also only module heros will work for with this or can i just use any hero i find? much help needed.
__________________
Peace Out Girl Scout

Last edited by aptmeatwad; 09-17-2006 at 13:12.
aptmeatwad is offline
Send a message via AIM to aptmeatwad Send a message via MSN to aptmeatwad Send a message via Yahoo to aptmeatwad
K1t3
New Member
Join Date: Feb 2005
Old 09-27-2006 , 11:20   Re: Super Hero Module 2.002 & New Server
#89

Quote:
Originally Posted by aptmeatwad View Post
When i download everything and put it in its place, my hero list(where u get to pick ur heros) doesnt show up on my server. also i think some files are missing... the shconfig.cfg, and the file where u can set the xp per lvl and how much u get per kill. i would like an reply to this or tell me that im just being a dumbass and show me where they are. also a tutorial for set up just to make sure i did everything right would be nice (post a link if there is already one). also only module heros will work for with this or can i just use any hero i find? much help needed.
yeah really... i also can't choose my hero!

here my ini's & cfg's

shmod.cfg
Code:
//--------------------------------------------------------------------
//
// SuperHero Mod Heroes CVARS
//
//--------------------------------------------------------------------

sh_superhero 	"1" 	//- <1/0> Self-Explanatory. Turns mod on/off. Put this somewhere into you config file (server.cfg is fine)
sh_numlevels 	"20" 	//- <#> (default = 10). Number of Max Levels. Put this somewhere into you config file (server.cfg is fine)
sh_savexp 		"1" 	//- <1/0> Save XP points or not? (will save to binary file only). No MySQL support in this version.
sh_saveby 		"2"		//- <1/2> Save int binary by: 1. SteamID 2. Name
sh_debug 		"0" 	//- <1/0> Will log debug messages. Only use when your server is crashing. Post your log file into forums to help us fix the crash.
sh_hsmult 		"1" 	//- (Default 1.0). Headshot multiplier. Gain more XP for killing with Headshot.


//Anubis 1.
anubis_level 1
anibus_showdamage 1
anibus_showchat 1

//Aquaman 2.
aquaman_level 2
aquaman_armorcost 0
aquaman_numbubbles 7
aquaman_bubbledamage 10

//Batman 3.
batman_level 6
batman_health 125
batman_armor 125

//Black Panther 4.
blackpanther_level 0

//Bomberman 5.
bomberman_level 1
bomberman_cooldown 5
bomberman_xpbased 0
bomberman_bombs 3
bomberman_bpl 1
bomberman_radius 400
bomberman_maxdamage 100

//Captain America 6.
captaina_level 2
captaina_pctperlev 0.02
captaina_godsecs 1

//Cyclops 7.
cyclops_level 6
cyclops_laser_ammo 20 // total # of shots...
cyclops_laser_burndecal 1
cyclops_cooldown 0.20
cyclops_multishot 0.20 //Delay for multishots on holding key down

//Daredevil 8.
daredevil_level 6
daredevil_radius 600
daredevil_bright 192

//Dazzler 9.
dazzler_level 0
dazzler_radius 3000
dazzler_cooldown 15

//Dracula 10.
dracula_level 0
dracula_pctperlev 0.03

//Flash 11.
flash_level 3
flash_speed 350

//Grandmaster
gmaster_level 9
gmaster_cooldown 600 // Just once!

//Hobgoblin 12.
hgoblin_level 4
hgoblin_grenademult 1.5
hgoblin_grenadetimer10

//Hulk 13.
hulk_level 3
hulk_radius 1800
hulk_cooldown 7
hulk_stuntime 3
hulk_stunspeed 70

//Human Torch 14.
htorch_level 7
htorch_armorcost 15
htorch_numburns 5
htorch_burndamage 10

//Iron Man 15.
ironman_level 9
ironman_timer 0.1
ironman_thrust 125
ironman_maxspeed 400
ironman_xymult 1.05
ironman_armorfuel 1
ironman_fuelcost 1
ironman_armor 100

//Kamikaze 16.
kamikaze_level 0
kamikaze_radius 300
kamikaze_fuse 15
kamikaze_maxdamage 125

//Magneto 17.
magneto_level 10
magneto_cooldown 45
magneto_boost 125
magneto_giveglock 1

//Mistique 18.
mystique_level 4
mystique_cooldown 0
mystique_maxtime 0
mystique_toggle 1

//Punisher 19.
punisher_level 5
punisher_dropwpn 0

//Shadow Cat 20.
shadowcat_level 1
shadowcat_cooldown 30
shadowcat_cliptime 6

//Skeletor 21.
skeletor_level 2
skeletor_cooldown 30
skeletor_camptime 15
skeletor_movedist 10

//Spiderman 22.
spiderman_level 4
spiderman_moveacc 140
spiderman_reelspeed 400
spiderman_hookstyle 2
spiderman_maxhooks 60
spiderman_teamcolored 1

//Superman 23.
superman_level 5
superman_gravity 0.35
superman_armor 150
superman_health 150

//wolverine 24.
wolv_level 2
wolv_healpoints 3
wolv_knifespeed 290
wolv_knifemult 1.35

//Xavier 25.
xavier_level 7
xavier_traillength 25
xavier_showteam 0
xavier_showenemy 1
xavier_refreshtimer 5.0
moduls.ini
Code:
;mysql
;sqlite


fun
engine
;fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
plugins.ini
Code:
; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
;miscstats.amxx		; bunch of events announcement for Counter-Strike
;stats_logging.amxx	; weapons stats logging (CSX Module required!)


; Custom - Add 3rd party plugins here
plugins-shero.ini
Code:
;SuperHero Mod
shero.amxx
sh_anubis.amxx
sh_aquaman.amxx
sh_batman.amxx
sh_blackpanther.amxx
sh_bomberman.amxx
sh_captaina.amxx
sh_cyclops.amxx
sh_daredevil.amxx
sh_dazzler.amxx
sh_dracula.amxx
sh_flash.amxx
sh_grandmaster.amxx
sh_hobgoblin.amxx
sh_hulk.amxx
sh_humantorch.amxx
sh_ironman.amxx
sh_kamikaze.amxx
sh_magneto.amxx
sh_mystique.amxx
sh_punisher.amxx
sh_shadowcat.amxx
sh_skeletor.amxx
sh_spiderman.amxx
sh_superman.amxx
sh_wolverine.amxx
sh_xavier.amxx
__________________
l1ve to kill - tRy to dIe
K1t3 is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-27-2006 , 14:11   Re: Super Hero Module 2.002 & New Server
#90

There is a Leak problem in this version of the module. Untill the next version i suggest everyone should stick with the plugin.
Freecode is offline
Closed Thread


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 19:08.


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