Raised This Month: $ Target: $400
 0% 

Removing "CS - Superhero Mod"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shibzor
Junior Member
Join Date: Jul 2007
Old 09-11-2011 , 10:49   Removing "CS - Superhero Mod"
Reply With Quote #1

Hey guys,

I have recently upgraded my SH mod version to 1.2 and I have noticed that there is an annoying new feature that changed the "game type" to "CS - Superhero Mod" in the server list.

I would like to change this back to the default "Counter-Strike" and I have re compiled the superheromod.sma and re uploaded it to my server but game type is still incorrect.

Do you guys have any suggestions to solve this problem?
shibzor is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-11-2011 , 11:40   Re: Removing "CS - Superhero Mod"
Reply With Quote #2

Yes, this is a huge issue. The SuperHero mod developers are very sorry for any harm this may have caused, and they hope that you will not sue them for this shameless act.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
shibzor
Junior Member
Join Date: Jul 2007
Old 09-11-2011 , 11:49   Re: Removing "CS - Superhero Mod"
Reply With Quote #3

Quote:
Originally Posted by Exploited View Post
Yes, this is a huge issue. The SuperHero mod developers are very sorry for any harm this may have caused, and they hope that you will not sue them for this shameless act.
Although I appreciate your reply it doesn’t contain any useful information towards solving my problem. As I understand the Superhero Mod is in somewhat of an open source state as they have released the source code along with the compiled code, from this I think it would be a reasonable question to ask for assistance in removing an unwanted feature. In the past this feature has not been an issue and I am simply asking how to remove it, as well as ask if anybody else has had any success removing it.

Thank you.
shibzor is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 09-11-2011 , 12:31   Re: Removing "CS - Superhero Mod"
Reply With Quote #4

open the superheromod.sma and find and remove(or comment out)
PHP Code:
public fm_GetGameDesc()
{
    if ( !
get_pcvar_num(sv_superheros) ) return FMRES_IGNORED

    
new mod_name[9]
    
get_modname(mod_namecharsmax(mod_name))
    if ( 
equal(mod_name"cstrike") ) {
        
forward_return(FMV_STRING"CS - SuperHero Mod")
    }
    else {
        
gIsCzero true
        forward_return
(FMV_STRING"CZ - SuperHero Mod")
    }

    return 
FMRES_SUPERCEDE

then recompile and upload new superheromod.amxx to your server
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
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 21:07.


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