Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS 1.6/BUG] See through smokes #1104

Open
Freeman-AM opened this issue May 11, 2013 · 7 comments
Open

[CS 1.6/BUG] See through smokes #1104

Freeman-AM opened this issue May 11, 2013 · 7 comments

Comments

@Freeman-AM
Copy link

Is it possible to fix this bug ?
It's too long to explain just watch the vid.

http://www.youtube.com/watch?v=qx1A4HDzhPA

@ghost ghost self-assigned this May 11, 2013
@healthycs16
Copy link

That's a pretty cool bug. :P

@WaLkZa
Copy link

WaLkZa commented Sep 29, 2017

s1lentq/ReGameDLL_CS#180

@WaLkZa
Copy link

WaLkZa commented Apr 20, 2019

@mikela-valve

@Maxi605
Copy link

Maxi605 commented Jul 21, 2019

@mikela-valve can this be considered to be fixed for a future update?

@RauliTop

This comment has been minimized.

@SamVanheer
Copy link

The code to show the sprite is in CBasePlayer::Radio on the server side.
Unfortunately it's a player attachment sprite so a proper fix will require an env_sprite with kRenderTransAlpha (alpha tested) attached to the player using MOVETYPE_FOLLOW.

I see that SV_Physics_Follow adds entvars_t::v_angle to the followed entity position so that could be used to offset the sprite's position to match the original behavior.

You can use a modified CSprite::AnimateAndDie to play the sprite for the same amount of time as the original:

inline void AnimateForTime( float framerate, float lifetime ) 
{ 
	SetThink(&CSprite::AnimateUntilDead); 
	pev->framerate = framerate;
	pev->dmgtime = gpGlobals->time + lifetime; 
	pev->nextthink = gpGlobals->time; 
}

@incognico
Copy link

incognico commented May 1, 2021

Unrelated to the issue, only curious:

I see that SV_Physics_Follow adds entvars_t::v_angle to the followed entity position

Is there a logical reason for that? Why is v.origin not just copied 1:1 like the v.angles are in SV_Physics_Follow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants