Hero creator
Home­Portal­FAQ­Search­Memberlist­Usergroups­Register­Log in­Link to us
Post new topic   Reply to topicShare | 
 

 few things doesnt work

View previous topic View next topic Go down 
Goto page : 1, 2  Next
AuthorMessage
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: few things doesnt work   Sat Aug 30, 2008 2:38 am

hp ap speed gravity works perfectly.
infinite ammo weapon spawn rgeneration and weapon mult doesnt. Have you tested it our self?
i didnt test models yet.
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Sat Aug 30, 2008 6:53 am

I tested and it didnt seem to work hmm but i had no one to test multipling or regen on

edit

i found why it wasnt working typical when you take from different heroes

edit

Update or download the latest now and check it

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Sat Aug 30, 2008 7:05 pm

Does it work now for you?

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Sun Aug 31, 2008 2:53 am

i cabt update because of new error . it cant find the right folder -_-.
where will i download it? is reinstalling going to help?

Ok i know whats wrong -_-
program files is the problem Very Happy
it takes only program and leaves out files therefore it searches for c\program\Superhero creator/hcsetup.exe .stupid thing -_-

Ok i found ehre i can get the newest version. do i have to put those in to or its allright to leave them as they are?

everything works exept models. keep the good work!
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Sun Aug 31, 2008 7:23 am

Atspulgs wrote:
i cabt update because of new error . it cant find the right folder -_-.
where will i download it? is reinstalling going to help?

Ok i know whats wrong -_-
program files is the problem Very Happy
it takes only program and leaves out files therefore it searches for c\program\Superhero creator/hcsetup.exe .stupid thing -_-

Ok i found ehre i can get the newest version. do i have to put those in to or its allright to leave them as they are?

everything works exept models. keep the good work!


models works fine for me (did you fill in what type of model you got?)
Code:
//Created using micke1101's hero generator for 1.2

#include <superheromod>
new gHeroID
new bool:gHasmhero[SH_MAXSLOTS+1]
new gPcvarHealPoints
new gPcvarm4a1Mult
//----------------------------------------------------------------------------------------------
public plugin_init()
{
        register_plugin("SUPERHERO all in one", SH_VERSION_STR, "Micke1101's Hero generator")

        new pcvarLevel = register_cvar("mhero_level", "12")
        new pcvarHealth = register_cvar("mhero_health", "12")
        new pcvarArmor = register_cvar("mhero_armor", "12")
        new pcvarGravity = register_cvar("mhero_gravity", "12")
        new pcvarSpeed = register_cvar("mhero_m4a1speed", "12")
        gPcvarm4a1Mult = register_cvar("mhero_m4a1mult", "12")
        gPcvarHealPoints = register_cvar("mhero_healpoints", "12")

        gHeroID = sh_create_hero("all in one", pcvarLevel)
        sh_set_hero_info(gHeroID, "mine hero", "its mine hero not your")
        sh_set_hero_hpap(gHeroID,  pcvarHealth,pcvarArmor)
        sh_set_hero_grav(gHeroID, pcvarGravity)
        sh_set_hero_speed(gHeroID, pcvarSpeed, {CSW_M4A1})
        set_task(1.0, "mhero_loop", _, _, _, "b")
        register_event("CurWeapon", "weapon_change", "be", "1=1")
}
public plugin_precache()
{
      precache_model("models/shmod/mhero_v_m4a1.mdl")
}
public sh_hero_init(id, heroID, mode)
{
        if ( gHeroID != heroID ) return

        switch(mode) {
            case SH_HERO_ADD: {
                gHasmhero[id] = true

                mhero_weapons(id)
                switch_model(id)
            }
          case SH_HERO_DROP: {
                gHasmhero[id] = false
                if ( is_user_alive(id) ) {
                    sh_drop_weapon(id, CSW_M4A1, true)
                }
            }
        }
}
public sh_client_spawn(id)
{
        if ( gHasmhero[id] ) {
            mhero_weapons(id)
        }
}
mhero_weapons(id)
{
    if ( sh_is_active() && is_user_alive(id) && gHasmhero[id] ) {
            sh_give_weapon(id, CSW_M4A1)
      }
}
//----------------------------------------------------------------------------------------------
public mhero_loop()
{
        if ( !sh_is_active() ) return

        static players[SH_MAXSLOTS], playerCount, player, i
        get_players(players, playerCount, "ah")
    for ( i = 0; i < playerCount; i++ ) {
            player = players[i]

            if ( gHasmhero[player] ) {
                sh_add_hp(player, get_pcvar_num(gPcvarHealPoints))
            }
        }
}
//----------------------------------------------------------------------------------------------
public client_damage(attacker, victim, damage, wpnindex, hitplace)
{
        if ( !sh_is_active() ) return
        if ( !is_user_alive(victim) || !is_user_connected(attacker) ) return

        if ( gHasmhero[attacker] && wpnindex == CSW_M4A1 ) {
            new headshot = hitplace == 1 ? 1 : 0

            new extraDamage = floatround(damage * get_pcvar_float(gPcvarm4a1Mult) - damage)
            if ( extraDamage > 0 ) sh_extra_damage(victim, attacker, extraDamage, "m4a1", headshot)
      }
}
public weapon_change(id)
{
        if ( !sh_is_active() || !gHasmhero[id] ) return

        if ( read_data(2) == CSW_M4A1 ) switch_model(id)
        if ( read_data(2) != CSW_M4A1 ) return
{
        if ( read_data(3) == 0 ) {
            sh_reload_ammo(id, 1)
          }
      }
}
public switch_model(id)
{
        if ( !sh_is_active() || !is_user_alive(id) || !gHasmhero[id] ) return

        if ( cs_get_user_shield(id) ) return
        if ( get_user_weapon(id) == CSW_M4A1 ) {
            set_pev(id, pev_viewmodel2, "models/shmod/mhero_v_m4a1.mdl")
      }
}


download amxx and model here

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Sun Aug 31, 2008 5:37 pm

it looked just like yours but still didnt compile.
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Sun Aug 31, 2008 6:17 pm

You must be using old compiler ive compiled it just download my stuff show me your code

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Sun Aug 31, 2008 9:35 pm

i downloaded the compiler you have linked in hero creator.
Code:
/Created using micke1101's hero generator for 1.2
#include <superheromod>
//----------------------------------------------------------------------------------------------
public plugin_init()
{
    register_plugin("SUPERHERO test", SH_VERSION_STR, "Micke1101's Hero generator")
    new pcvarLevel = register_cvar("kk_level", "1")
    gHeroID = sh_create_hero("test", pcvarLevel)
    sh_set_hero_info(gHeroID, "kkdfhd", "dhkd")
    register_event("CurWeapon", "weapon_change", "be", "1=1")
}
public plugin_precache()
{
      precache_model("models/shmod/kk_v_knife.mdl")
      precache_model("models/shmod/kk_p_knife.mdl")
}
public sh_hero_init(id, heroID, mode)
{
    if ( gHeroID != heroID ) return
    switch(mode) {
      case SH_HERO_ADD: {
      gHaskk[id] = true
      switch_model(id)
      }
          case SH_HERO_DROP: {
      gHaskk[id] = false
      if ( is_user_alive(id) ) {
      }
      }
    }
}
public weapon_change(id)
{
    if ( !sh_is_active() || !gHaskk[id] ) return
    if ( read_data(2) == CSW_KNIFE ) switch_model(id)
}
public switch_model(id)
{
    if ( !sh_is_active() || !is_user_alive(id) || !gHaskk[id] ) return
    if ( cs_get_user_shield(id) ) return
    if ( get_user_weapon(id) == CSW_KNIFE ) {
      set_pev(id, pev_viewmodel2, "models/shmod/kk_v_knife.mdl")
      set_pev(id, pev_weaponmodel2, "models/shmod/kk_p_knife.mdl")
      }
}
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Mon Sep 01, 2008 4:53 am

these
new gHeroID
new bool:gHaskk[SH_MAXSLOTS+1]
where missing under include i will fix it soon

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Mon Sep 01, 2008 7:17 am

your right Very Happy didnt notice that Very Happy but from the other hand i didnt pay much of attention Very Happy
anyway this happens if you use only skins without any other power.
Is player model valid?
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Mon Sep 01, 2008 12:19 pm

Atspulgs wrote:
your right Very Happy didnt notice that Very Happy but from the other hand i didnt pay much of attention Very Happy
anyway this happens if you use only skins without any other power.
Is player model valid?

playermodel....thinking....not yet
skins only......noted
searching for more bugs......

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Mon Sep 01, 2008 1:13 pm

exept few warnings and that it doesnt rly work with vista that well Very Happy it is fine.
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Mon Sep 01, 2008 2:39 pm

Atspulgs wrote:
exept few warnings and that it doesnt rly work with vista that well Very Happy it is fine.

yea the warnings is just loose identation(a space to much or less)
and with my vista computer it works well

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
Atspulgs




Number of posts: 76
Age: 19
Location: Ireland
Karma:: <font color="green"><b>Normal</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
2 / 1002 / 100

<font></font>:
Steamid: Plz fill in steamid
Registration date: 2008-07-28

PostSubject: Re: few things doesnt work   Tue Sep 02, 2008 4:12 pm

-_- well my one seems to be extra dumb Very Happy
Back to top Go down
View user profile http://jogyclan.ucoz.com
micke1101




Number of posts: 152
Age: 15
Location: Sverige/Växjö | Sweden/vaxjo
Karma:: <font color="green"><b>Very good</b></font>
Warning:
0 / 1000 / 100

Rank permisson:
10 / 10010 / 100

Next Permisson: You cant get any higher XD
<font></font>:
Steamid: STEAM_0:1:17811664
Registration date: 2008-07-23

PostSubject: Re: few things doesnt work   Tue Sep 02, 2008 6:16 pm

Any special kind of vista?

_________________
Hi Guest to my forum!!
Back to top Go down
View user profile http://amxmodx.darkbb.com
 

few things doesnt work

View previous topic View next topic Back to top 
Page 1 of 2Goto page : 1, 2  Next

Permissions of this forum:You can reply to topics in this forum
Hero creator :: Hero generator :: Report Bugs-
Post new topic   Reply to topic