Raised This Month: $ Target: $400
 0% 

Calling custom classes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-28-2014 , 14:40   Re: Calling custom classes
Reply With Quote #1

Class is BLOCK, then

PHP Code:
RegisterHamFromEntity(Ham_TraceAttackBLOCK"shoot_item"
Just delete the comma
__________________
Hey ^_^
NikKOo31 is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-28-2014 , 14:55   Re: Calling custom classes
Reply With Quote #2

Quote:
Originally Posted by NikKOo31 View Post
Class is BLOCK, then

PHP Code:
RegisterHamFromEntity(Ham_TraceAttackBLOCK"shoot_item"
Just delete the comma
Guys that is justa typo and it will still not work if I remove that typo,,,,
Check the hamsandwich.inc which i quoted on
proffs is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-28-2014 , 17:00   Re: Calling custom classes
Reply With Quote #3

Quote:
Originally Posted by proffs View Post
Guys that is justa typo and it will still not work if I remove that typo,,,,
Check the hamsandwich.inc which i quoted on
Oh sorry, I missread

Then just
PHP Code:
    new ent create_entity("info_target")
    if ( !
is_valid_ent(ent) ) return 0

    entity_set_string
(entEV_SZ_classnameg_block_classname)
    
entity_set_int(entEV_INT_solidSOLID_BBOX)
    
entity_set_int(entEV_INT_movetypeMOVETYPE_NONE)
    
RegisterHamFromEntity(Ham_TraceAttackent"shoot_item"
Or register at any time
PHP Code:
    new ent
    
while((ent engfunc(EngFunc_FindEntityByStringent"classname"BLOCK)) != 0)
    { 
//requires fakemeta
        
RegisterHamFromEntity(Ham_TraceAttackent"shoot_item")
    } 
__________________
Hey ^_^

Last edited by NikKOo31; 07-28-2014 at 17:01. Reason: typo
NikKOo31 is offline
proffs
Senior Member
Join Date: Jul 2013
Old 07-28-2014 , 19:11   Re: Calling custom classes
Reply With Quote #4

Quote:
Originally Posted by NikKOo31 View Post
Oh sorry, I missread

Then just
PHP Code:
    new ent create_entity("info_target")
    if ( !
is_valid_ent(ent) ) return 0

    entity_set_string
(entEV_SZ_classnameg_block_classname)
    
entity_set_int(entEV_INT_solidSOLID_BBOX)
    
entity_set_int(entEV_INT_movetypeMOVETYPE_NONE)
    
RegisterHamFromEntity(Ham_TraceAttackent"shoot_item"
Or register at any time
PHP Code:
    new ent
    
while((ent engfunc(EngFunc_FindEntityByStringent"classname"BLOCK)) != 0)
    { 
//requires fakemeta
        
RegisterHamFromEntity(Ham_TraceAttackent"shoot_item")
    } 
Sorry man I am a totally noob and are mind fucked.
Could you post whole code?
Sorry again!
proffs 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:09.


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