AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Visible aiment entities (https://forums.alliedmods.net/showthread.php?t=133070)

joropito 07-21-2010 14:41

Visible aiment entities
 
Does anyone know if there's a way to let an entity with MOVETYPE_FOLLOW and aiment on a player to be visible for that player?

Think for example a wheelbarrow model on that entity.
It can be seen by any player but not by the followed player.

Thanks

ot_207 07-21-2010 14:44

Re: Visible aiment entities
 
Addtofullpack. You supercede the entity transmission for other clients.
You want to make the player view his own body?

joropito 07-21-2010 16:32

Re: Visible aiment entities
 
Quote:

Originally Posted by ot_207 (Post 1246960)
Addtofullpack. You supercede the entity transmission for other clients.
You want to make the player view his own body?

I want to attach something big to the player and let him to see it.
For example like silversurfer can see his surf board :P

joropito 07-21-2010 19:34

Re: Visible aiment entities
 
I get the point to make it works.

This is how:

PHP Code:

public fwdAddToFullPackPost(eseenthostflagsplayerpset)
{
      if(
is_user_alive(host) && g_aiment[host] == ent)
            
set_es(esES_AimEnt0)

      return 
FMRES_IGNORED


Now I have another problem.

If I move forward, that entity moves later than my movements.
I guess it's prediction.

Can be fixed to get smoothing movements?
I'm trying to simulate v_models using MOVETYPE_FOLLOW

Hunter-Digital 07-21-2010 21:19

Re: Visible aiment entities
 
It moves later because it doesn't think it's an aiment, therefore it doesn't predict your movements, isn't there other way to show it to the player ? force rendering, take out EF_NODRAW from it's flags or something, I dunno :lol:

joropito 07-21-2010 21:58

Re: Visible aiment entities
 
Quote:

Originally Posted by Hunter-Digital (Post 1247368)
It moves later because it doesn't think it's an aiment, therefore it doesn't predict your movements, isn't there other way to show it to the player ? force rendering, take out EF_NODRAW from it's flags or something, I dunno :lol:

I need that entity to follow player movements in a perfect way.

I've tried to copy player velocity and same happens.
I'm just testing and if I can do it, will be awesome all that can be done with that.


All times are GMT -4. The time now is 07:13.

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