Raised This Month: $ Target: $400
 0% 

Entity/Npc - EV_BYTE_controller1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sherazaa
Member
Join Date: Jun 2012
Old 04-16-2013 , 16:58   Entity/Npc - EV_BYTE_controller1
Reply With Quote #1

Hi everyone,

I've got today a little question.

In this code :
PHP Code:
public onna(id)
{

    new 
Float:origin[3]

    
entity_get_vector(id,EV_VEC_origin,origin)

    new 
ent create_entity("info_target")
    
give_weapon(ent)

    
entity_set_origin(ent,origin);
    
origin[2] += 300.0
    entity_set_origin
(id,origin)

    
entity_set_float(ent,EV_FL_takedamage,1.0)
    
entity_set_float(ent,EV_FL_health,100.0)

    
entity_set_string(ent,EV_SZ_classname,"npc_onna");
    
entity_set_model(ent,"models/onna.mdl");
    
entity_set_int(ent,EV_INT_solid2)

    
entity_set_byte(ent,EV_BYTE_controller1,125);
    
entity_set_byte(ent,EV_BYTE_controller2,125);
    
entity_set_byte(ent,EV_BYTE_controller3,125);
    
entity_set_byte(ent,EV_BYTE_controller4,125);

    new 
Float:maxs[3] = {16.0,16.0,36.0}
    new 
Float:mins[3] = {-16.0,-16.0,-36.0}
    
entity_set_size(ent,mins,maxs)

    
entity_set_float(ent,EV_FL_animtime,2.0)
    
entity_set_float(ent,EV_FL_framerate,1.0)
    
entity_set_int(ent,EV_INT_sequence,0);

    
entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)

    
drop_to_floor(ent)
    return 
1;
}

public 
give_weapon(ent)
{
        new 
entWeapon create_entity("info_target")

        
entity_set_string(entWeaponEV_SZ_classname"npc_weapon")

        
entity_set_int(entWeaponEV_INT_movetypeMOVETYPE_FOLLOW)
        
entity_set_int(entWeaponEV_INT_solidSOLID_NOT)
        
entity_set_edict(entWeaponEV_ENT_aimentent)
        
entity_set_model(entWeapon"models/p_gauss.mdl"
}

public 
npc_think(id)
{
    
// Put your think stuff here.
    
entity_set_float(id,EV_FL_nextthink,halflife_time() + 0.01)


What is this ? I really do not understand this lines. Can someone explain that to me ?
Code:
entity_set_byte(ent,EV_BYTE_controller1,125); entity_set_byte(ent,EV_BYTE_controller2,125); entity_set_byte(ent,EV_BYTE_controller3,125); entity_set_byte(ent,EV_BYTE_controller4,125);

Thanks in advance guys
__________________
[B]Bhop & Kz Player
Sherazaa is offline
Old 04-17-2013, 10:05
Podarok
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
Old 04-17-2013, 10:33
EpicMonkey
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
Old 04-17-2013, 10:37
Podarok
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
Old 04-17-2013, 10:37
baneado
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
Old 04-17-2013, 12:14
Leon M.
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
Old 04-17-2013, 12:47
Sherazaa
This message has been deleted by ConnorMcLeod. Reason: useless posts and answers to those posts
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 10:56.


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