|
|
| Author | Message |
|---|
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: 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. |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: 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!!  |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: Re: few things doesnt work Sat Aug 30, 2008 7:05 pm | |
| Does it work now for you? _________________ Hi Guest to my forum!!  |
|
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: 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  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! |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: 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  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!!  |
|
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: Re: few things doesnt work Sun Aug 31, 2008 5:37 pm | |
| it looked just like yours but still didnt compile. |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: 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!!  |
|
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: 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") } }
|
|
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: 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!!  |
|
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: Re: few things doesnt work Mon Sep 01, 2008 7:17 am | |
| your right  didnt notice that  but from the other hand i didnt pay much of attention  anyway this happens if you use only skins without any other power. Is player model valid? |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: Re: few things doesnt work Mon Sep 01, 2008 12:19 pm | |
| |
|
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: 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  it is fine. |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | |
 | |
Atspulgs


Number of posts: 76 Age: 19 Location: Ireland Karma:: <font color="green"><b>Normal</b></font> Warning: Rank permisson: <font></font>:  Steamid: Plz fill in steamid Registration date: 2008-07-28
 | Subject: Re: few things doesnt work Tue Sep 02, 2008 4:12 pm | |
| -_- well my one seems to be extra dumb  |
|
 | |
micke1101


Number of posts: 152 Age: 15 Location: Sverige/Växjö | Sweden/vaxjo Karma:: <font color="green"><b>Very good</b></font> Warning: Rank permisson: Next Permisson: You cant get any higher XD <font></font>:  Steamid: STEAM_0:1:17811664 Registration date: 2008-07-23
 | Subject: Re: few things doesnt work Tue Sep 02, 2008 6:16 pm | |
| Any special kind of vista? _________________ Hi Guest to my forum!!  |
|
 | |
|