Raised This Month: $ Target: $400
 0% 

How to make a Fake Player, that can repeat the gestures of real player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-23-2011 , 21:56   How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #1

Help me to make a npc, that npc can repeat the gestures of real player, and 100% like a player... I saw some tutorial, but i still can't do it

Last edited by dias; 09-24-2011 at 04:06.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-24-2011 , 08:24   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #2

Search Potti in Approved plugins.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-24-2011 , 09:33   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #3

Let's see

Last edited by dias; 09-24-2011 at 09:36.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-24-2011 , 10:24   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #4

@drekes:
- I need it as an Entity NPC, not fake player
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-24-2011 , 13:33   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #5

Check the move copying from that plugin & combine it with these tutorials:

- http://forums.alliedmods.net/showthread.php?t=11756
- http://forums.alliedmods.net/showthread.php?t=145716
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-24-2011 , 20:55   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #6

I still can't do it. Can you add that code for me to the think forward ?
PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    
register_clcmd("onna""onna")
    
register_think("npc_onna","npc_think");
}

public 
plugin_precache()
{
    
precache_model("models/player/gign/gign.mdl")
    
precache_model("models/p_ak47.mdl")
}

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/player/gign/gign.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_ak47.mdl"
}

public 
npc_think(id)
{
    
// Add Code Here
    
    
    
    
entity_set_float(id,EV_FL_nextthink,halflife_time() + 0.01)

dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 09-24-2011 , 21:08   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #7

I don't know if it's the right plugin, but this thingy imitates a player with the same model: CS Holodude (holoduke emulator)
__________________
ANTICHRISTUS is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-25-2011 , 04:29   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #8

Not that plugin
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-25-2011 , 07:47   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #9

Making an npc is not easy & requires a lot of time and patience.
I don't have the time to do it.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 10-13-2011 , 08:43   Re: How to make a Fake Player, that can repeat the gestures of real player
Reply With Quote #10

does someone do it for me . I need it
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
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 19:37.


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