Raised This Month: $12 Target: $400
 3% 

Need hero name for this hero!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-01-2010 , 14:05   Need hero name for this hero!
Reply With Quote #1

Hi there. I have made this very basic hero, but has actually not been done yet. I have no name for it, and I just don't want to choose one randomly, as I always seem to choose a bad hero name. I post in here, because it is easier to say what it does by posting the code, other than write it down.
Also powerHelp and powerInfo I need.

I didn't provide the models, as they are not finished yet. They are hitbox models.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <superheromod>

new gHeroID
new gHasHero[SH_MAXSLOTS+1]

public 
plugin_init()
{
    
register_plugin("SUPERHERO ""1.0""Jelle")
    
    new 
pcvarLevel register_cvar("hero_level""2")
    
    
gHeroID sh_create_hero("Hero"pcvarLevel)
    
sh_set_hero_info(gHeroID"PowerInfo""PowerHelp")
}

public 
sh_hero_init(idheroIDmode)
{
    if ( 
gHeroID != heroID ) return
    
    switch(
mode)
    {
        case 
SH_HERO_ADD:
        {
            
gHasHero[id] = true
            switch_model_has_hero
(id)
        }
        
        case 
SH_HERO_DROP:
        {
            
gHasHero[id] = false
            switch_model
(id)
        }
    }
}

public 
plugin_precache()
{
    
precache_model("models/player/hero/heroname_t")
    
precache_model("models/player/hero/heroname_ct")
}

public 
sh_client_spawn(id)
{
    
switch_model(id)
    
    if ( 
gHasHero[id] )
    {
        
switch_model_has_hero(id)
    }
}

switch_model(id)
{
    if ( !
is_user_alive(id) )
    {
        
cs_reset_user_model(id)
    }
    
    else if ( 
cs_get_user_team(id) == CS_TEAM_CT )
    {
        
cs_set_user_model(id"heromodel_ct")
    }
    
    else if ( 
cs_get_user_team(id) == CS_TEAM_T )
    {
        
cs_set_user_model(id"heromodel_t")
    }
}
    
switch_model_has_hero(id)
{
    
cs_reset_user_model(id)
}

public 
sh_client_death(id)
{
    
switch_model(id)

Optimizations are welcome too.
__________________
No idea what to write here...

Last edited by Jelle; 11-01-2010 at 14:08.
Jelle is offline
Send a message via MSN to Jelle
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-01-2010 , 14:45   Re: Need hero name for this hero!
Reply With Quote #2

how bout "wasted" as in a wasted slot. First of all, look again at your model paths and remember player models must follow the format "models/player/modelname/modelname". Second issue is even if the models worked properly, your only setting the model when the player drops the hero. Not sure if you mixed up your switch_model and switch_model_has_hero functions or if you actually meant to do it, but it seems like a waste.
__________________
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
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 11-01-2010 , 14:49   Re: Need hero name for this hero!
Reply With Quote #3

Quote:
Originally Posted by G-Dog View Post
how bout "wasted" as in a wasted slot. First of all, look again at your model paths and remember player models must follow the format "models/player/modelname/modelname". Second issue is even if the models worked properly, your only setting the model when the player drops the hero. Not sure if you mixed up your switch_model and switch_model_has_hero functions or if you actually meant to do it, but it seems like a waste.
/modelname/modelname

-->

/modelname/modelname.mdl



Distinguisher, lol..
__________________
The Art of War is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-01-2010 , 15:14   Re: Need hero name for this hero!
Reply With Quote #4

I tend to forget about how the models should be placed. But I do not consider it a waste.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-02-2010 , 06:13   Re: Need hero name for this hero!
Reply With Quote #5

this thing don't have a chance to be approved.

vittu search original things, and a new kind of playermodel hero is redundant.
Fr33m@n is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 08:01   Re: Need hero name for this hero!
Reply With Quote #6

I was really not planning on releasing it, I just need a name.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-02-2010 , 13:46   Re: Need hero name for this hero!
Reply With Quote #7

ah ok. i though it was a purpose for an approved plugin.
Fr33m@n is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-02-2010 , 15:01   Re: Need hero name for this hero!
Reply With Quote #8

Not at all. I just really can't find a name for it.

And as you can see it is not just an ordinary model hero. I have no idea what to call it.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 11-03-2010 , 04:39   Re: Need hero name for this hero!
Reply With Quote #9

Blockmaster, the Cube, Cubeman, w.e..
__________________
The Art of War is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-03-2010 , 05:33   Re: Need hero name for this hero!
Reply With Quote #10

It sets hitbox models on all players, and when you get the hero, it resets your model so you do not look like a hitbox model but the normal model.

Block master seems interesting, but not quite what I am looking for.

I guess it was a lost cause.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Reply


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 03:50.


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