AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with fake_player (https://forums.alliedmods.net/showthread.php?t=193263)

terryoh 08-17-2012 20:51

Help with fake_player
 
Well what I want to know is if it's posible to make the "fake player", already created and with weapon, to look at things like me ....I mean... I can make him to stand still and move his angles like me ...but if I look up ...he is moving like a box ...not like a human ...is it posible to move only his head and arms like a human or the whole body movement it's all I get ?

This is what I've done in prethink :
PHP Code:

VelocityByAim(id,200,veloc)
    
vector_to_angle(veloc,angles)
    
set_pev(entpev_anglesangles

and if I put veloc[2]=0 obviously the fake player it moves it's angles only x y coordonates ... I taught I can make this and add something to move only his head and arms angle only in z coordonate ...I don't know :( ...

Off: I hope I explained the situation well ..

Merciless 08-17-2012 21:56

Re: Help with fake_player
 
You cant move uperbody and downbody at same time on a non-player entity.

terryoh 08-18-2012 09:00

Re: Help with fake_player
 
I was afraid of this ...anyway ...another 2 question if I may ...how can I set the weapon to actually fire ? ...not to make damage ...to make the animation of a weapon fireing ..and also ...how can I make the fake player to look at what I look ...with the code I already done ...the fake player it moves it's angles like my ....like If I look forward he look also forward ...doesn't matter where ...how can I make it to move it's angles like it is looking at what I am looking ?


All times are GMT -4. The time now is 05:48.

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