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

Even more questions/issues...


Post New Thread Reply   
 
Thread Tools Display Modes
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 09-05-2010 , 16:29   Re: Even more questions/issues...
Reply With Quote #371

Rage.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 09-05-2010 , 18:50   Re: Even more questions/issues...
Reply With Quote #372

PHP Code:
//Marine - Originally by Tassdarmaser, recoded by Exploited.
 
#include <superheromod>
 
// OFFSETS
const m_pPlayer 41
const XTRA_OFS_WEAPON 4
 
// GLOBAL VARIABLES
new gHeroID
new const gModelM4A1[] = "models/shmod/marine_m4a1.mdl"
new bool:gHasMarine[SH_MAXSLOTS+1]
//----------------------------------------------------------------------------------------------
public plugin_init()
{
    
// Plugin Info
    
register_plugin("SUPERHERO Marine""2.0""Tassadarmaser/Exploited")
 
    
// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
    
new pcvarLevel register_cvar("marine_level""10")
    new 
pcvarArmor register_cvar("marine_armor""250")
    new 
pcvarHealth register_cvar("marine_health""400")
    new 
pcvarGravity register_cvar("marine_grav""0.40")
    new 
pcvarM4A1Mult register_cvar("marine_mult""2.0")
 
    
// FIRE THE EVENT TO CREATE THIS SUPERHERO!
    
gHeroID sh_create_hero("Marine"pcvarLevel)
    
sh_set_hero_info(gHeroID"Marine's Guass-Rifle""Lower Gravity/HPs & APs/Extra Damage/Unlimited Ammo")
    
sh_set_hero_hpap(gHeroIDpcvarHealthpcvarArmor)
    
sh_set_hero_grav(gHeroIDpcvarGravity)
    
sh_set_hero_dmgmult(gHeroIDpcvarM4A1MultCSW_M4A1)
 
    
// REGISTER EVENTS THIS HERO WILL RESPOND TO!
    
register_event("CurWeapon""weapon_change""be""1=1""2=22")
    
RegisterHam(Ham_Item_Deploy"weapon_m4a1""Ham_M4A1_Deploy_Post"true)
}
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
    
precache_model(gModelM4A1)
}
//----------------------------------------------------------------------------------------------
public sh_hero_init(idheroIDmode)
{
    if ( 
gHeroID != heroID ) return
    switch(
mode)
    {
        case 
SH_HERO_ADD:
        {
            
gHasMarine[id] = true
            marine_weapons
(id)
            if ( 
get_user_weapon(id) == CSW_M4A1 )
            {
                
switch_model(id)
            }
        }
        case 
SH_HERO_DROP:
        {
            
gHasMarine[id] = false
            
if ( is_user_alive(id) )
            {
                
sh_drop_weapon(idCSW_M4A1true)
            }
        }
    }
}
//----------------------------------------------------------------------------------------------
public sh_client_spawn(id)
{
    if ( 
gHasMarine[id] )
    {
        
marine_weapons(id)
    }
}
//----------------------------------------------------------------------------------------------
marine_weapons(id)
{
    if ( 
sh_is_active() && is_user_alive(id) && gHasMarine[id] )
    {
        
sh_give_weapon(idCSW_M4A1)
    }
}
//----------------------------------------------------------------------------------------------
switch_model(id)
{
    if ( !
sh_is_active() || !is_user_alive(id) || !gHasMarine[id] ) return
 
    
set_pev(idpev_viewmodel2gModelM4A1)
}
//----------------------------------------------------------------------------------------------
public weapon_change(id)
{
    if ( !
sh_is_active() || !gHasMarine[id] ) return
 
    
// Never Run Out of Ammo!
    //clip = read_data(3)
    
if ( read_data(3) == )
    {
        
sh_reload_ammo(id1)
    }
}
//----------------------------------------------------------------------------------------------
public Ham_M4A1_Deploy_Post(const weapon_ent)
{
    new 
owner get_pdata_cbase(weapon_entm_pPlayerXTRA_OFS_WEAPON)
 
    
switch_model(owner)
}
//---------------------------------------------------------------------------------------------- 
Fr33m@n is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-06-2010 , 01:57   Re: Even more questions/issues...
Reply With Quote #373

Thanks a lot Freeman!
So all I have to do to use both is to.. use both? Without any editing in the CurWeapon part? And adding the Offsets? (what does the offsets do btw, so I might be able to use it in future heroes?)
__________________
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
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-06-2010 , 02:03   Re: Even more questions/issues...
Reply With Quote #374

Quote:
Originally Posted by Exploited View Post
Thanks a lot Freeman!
So all I have to do to use both is to.. use both? Without any editing in the CurWeapon part? And adding the Offsets? (what does the offsets do btw, so I might be able to use it in future heroes?)
http://wiki.alliedmods.net/CBasePlayer_(CS)

You can also look at the code for punisher V2, to see another example of how get_pdata_cbase works.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-06-2010 , 09:07   Re: Even more questions/issues...
Reply With Quote #375

There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page.
__________________
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
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 09-06-2010 , 10:02   Re: Even more questions/issues...
Reply With Quote #376

Wow, is it so hard to add the OBVIOUS )?
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-06-2010 , 10:27   Re: Even more questions/issues...
Reply With Quote #377

If you just take a very quick look, then yes.
__________________
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
alconnegro
Member
Join Date: Jun 2010
Old 09-07-2010 , 00:07   Re: Even more questions/issues...
Reply With Quote #378

someone has heroes with the skills of the characters in TF2
__________________
[IMG]http://img718.**************/img718/7375/wtfzv.jpg[/IMG]
alconnegro is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 09-07-2010 , 10:23   Re: Even more questions/issues...
Reply With Quote #379

So umm, my server have been having some seemingly random crashes and I can't really figure out whats causing them. They all started when I added Danimoth X, Penguin and Gambit at the same time, but I removed both Penguin and Danimoth X from the server (atleast the .amxx files) but it was still crashing. I asked Fr33m@n about it and he narrowed down the list to 10-15 or so suspects. I think he looked at Head Shooter, Gambit and Tyrael and said that none of those could cause a crash (I am not 100% sure if he did Gambit, but I think he did).

Heres the log about it:
Code:
L 09/07/2010 - 14:00:23: -------- Mapchange to de_dust_cz -------- L 09/07/2010 - 14:00:23: [superheromodvault.amxx] Exec: (1) Loading shconfig.cfg (message should be seen twice) L 09/07/2010 - 14:00:23: [superheromodvault.amxx] Exec: (2) Loading shconfig.cfg (message should be seen twice) L 09/07/2010 - 14:00:24: [admincmd.amxx] Cmd: "SuperHero Mod w.K @ http://wk-c<0><><>" set cvar (name "mp_freezetime") (value "3") L 09/07/2010 - 14:00:24: [walkguard.amxx] no zone-file found L 09/07/2010 - 14:00:24: [admin.amxx] Login: "w.K Exploited<181><STEAM_0:1:13406845><>" became an admin (account "STEAM_0:1:13406845") (access "abcdefghijklmnopqrstu") (address "xxxxxxxxxx") L 09/07/2010 - 14:00:24: [admin.amxx] Login: "w.K Aliv3^<169><STEAM_0:0:11136951><>" became an admin (account "STEAM_0:0:11136951") (access "bcdefhijklnopqrstu") (address xxxxxxxxxx) L 09/07/2010 - 14:07:07: -------- Mapchange to de_dust_cz -------- L 09/07/2010 - 14:07:08: [superheromodvault.amxx] Exec: (1) Loading shconfig.cfg (message should be seen twice) L 09/07/2010 - 14:07:08: [superheromodvault.amxx] Exec: (2) Loading shconfig.cfg (message should be seen twice) L 09/07/2010 - 14:07:09: [admincmd.amxx] Cmd: "SuperHero Mod w.K @ http://wk-c<0><><>" set cvar (name "mp_freezetime") (value "3") L 09/07/2010 - 14:07:10: [walkguard.amxx] no zone-file found L 09/07/2010 - 14:07:12: [admin.amxx] Login: "Exploited<1><STEAM_0:1:13406845><>" became an admin (account "STEAM_0:1:13406845") (access "abcdefghijklmnopqrstu") (address "90.230.249.100")
[/code]
As you can see, the map crashed while we were playing de_dust.

Heres the errorlogs for today:
Code:
L 09/07/2010 - 11:02:52: Start of error session. L 09/07/2010 - 11:02:52: Info (map "de_rats_1337") (file "addons/amxmodx/logs/error_20100907.log") L 09/07/2010 - 11:02:52: Invalid player id 95 L 09/07/2010 - 11:02:52: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 11:02:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 11:03:00: Invalid player id 93 L 09/07/2010 - 11:03:00: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 11:03:00: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 11:03:01: Invalid player id 93 L 09/07/2010 - 11:03:01: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 11:03:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 11:04:10: Invalid player id 159 L 09/07/2010 - 11:04:10: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 11:04:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 11:31:24: Invalid player id 95 L 09/07/2010 - 11:31:24: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 11:31:24: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:04:09: Start of error session. L 09/07/2010 - 13:04:09: Info (map "De_Rats_1337") (file "addons/amxmodx/logs/error_20100907.log") L 09/07/2010 - 13:04:09: Invalid player id 95 L 09/07/2010 - 13:04:09: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:04:09: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:12:50: Invalid player id 94 L 09/07/2010 - 13:12:50: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:12:50: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:12:59: Invalid player id 95 L 09/07/2010 - 13:12:59: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:12:59: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:17:05: Invalid player id 94 L 09/07/2010 - 13:17:05: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:17:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:17:12: Invalid player id 94 L 09/07/2010 - 13:17:12: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:17:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:17:54: Invalid player id 95 L 09/07/2010 - 13:17:54: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:17:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 09/07/2010 - 13:18:33: Invalid player id 94 L 09/07/2010 - 13:18:33: [AMXX] Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") - debug not enabled! L 09/07/2010 - 13:18:33: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Any ideas?
Also, Fr33m@n said my plugins-shero file could be useful so here it is:

Code:
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_demoman.amxx
sh_dracula.amxx
sh_flash.amxx
sh_grandmaster.amxx
sh_hobgoblin.amxx
sh_humantorch.amxx
sh_invisman.amxx
sh_ironman.amxx
sh_kamikaze.amxx
sh_morpheus.amxx
sh_mystique.amxx
sh_punisher.amxx
sh_shadowcat.amxx
sh_spiderman.amxx
sh_superman.amxx
sh_xavier.amxx
sh_phoenix.amxx
sh_batgirl.amxx
sh_blink.amxx
sh_beast.amxx
sh_agentzero.amxx
sh_bishop.amxx
sh_wolverine.amxx
sh_chucky.amxx
sh_riddick.amxx
sh_darthmaul.amxx
sh_goten.amxx
sh_grimreaper.amxx
sh_gogeta.amxx
sh_ssjgohan.amxx
sh_yoda.amxx
sh_tyrael.amxx
sh_stick.amxx
sh_wonderwoman.amxx
sh_kirby.amxx
sh_juggernaut_nonstop_pub.amxx
sh_drstrange.amxx
sh_bazooka.amxx
sh_scorpion.amxx
sh_marine.amxx
sh_mhacker.amxx
sh_spy.amxx
sh_apack.amxx
sh_awphero.amxx
sh_penguin.amxx
sh_gambit.amxx
sh_danimothX_22.amxx
sh_hshooter.amxx
sh_swat.amxx
P.S It is not SWAT causing the crashes cause I added it after the crashes started occuring.
__________________
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
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 09-07-2010 , 12:04   Re: Even more questions/issues...
Reply With Quote #380

Run time error 10 (plugin "sh_tyrael.amxx") (native "get_user_origin") ?
__________________
The Art of War is offline
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 13:51.


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