Re: [hlcoders] several questions

2009-02-20 Thread Yorg Kuijs
Cool thanks, btw hey dogmeat it's me DuckSauce but you may know already lol. I haven't tested it out with multiple players, but here's the code I'm using for the hitsounds in OnTakeDamage: CRecipientFilter filter; // needed to cast since GetAttacker returns the attacker as CBaseEntity,

Re: [hlcoders] several questions

2009-02-17 Thread Yorg Kuijs
That kinda works, the animation doesn't play for about 1-2 seconds but afterwards it happily trucks on, any other suggestions? Skillet wrote: Stopping SetCycle() from being called in C_BaseViewModel::Interpolate() should freeze the view model animation.

Re: [hlcoders] several questions

2009-02-17 Thread Jorge Rodriguez
Maybe it will work to have a special frozen animation that is completely still that you just set to play at the appropriate time? -- Jorge Vino Rodriguez ___ To unsubscribe, edit your list preferences, or view the list archives, please visit:

[hlcoders] several questions

2009-02-16 Thread Yorg Kuijs
Hey list, got a few questions: 1. Does anybody know if it's possible to have a sound be emitted that only the player it was meant for can hear? As far as I know all sounds are emitted into the world. I might be making a hitbleep system similar to quake, wet, et:qw and dystopia, roughly I

Re: [hlcoders] several questions

2009-02-16 Thread Jorge Rodriguez
On Mon, Feb 16, 2009 at 12:00 PM, Yorg Kuijs yorg.ku...@home.nl wrote: 1. Does anybody know if it's possible to have a sound be emitted that only the player it was meant for can hear? As far as I know all sounds are emitted into the world. I might be making a hitbleep system similar to quake,

Re: [hlcoders] several questions

2009-02-16 Thread Yorg Kuijs
How do I emit on client? #ifdef client.dll? Jorge Rodriguez wrote: You can emit the sound on the client, or you can call the sound with a single recipient filter instead of a pas filter. ___ To unsubscribe, edit your list preferences, or view

Re: [hlcoders] several questions

2009-02-16 Thread Jorge Rodriguez
If you're in shared code, this might work #ifdef CLIENT_DLL EmitSound(etc etc); #endif Or you can do it in client-specific code by reading whatever synchronized variables might tell you what you need to know to play the sound. Otherwise you'll have to send a message to the client to play the

Re: [hlcoders] several questions

2009-02-16 Thread Skillet
Stopping SetCycle() from being called in C_BaseViewModel::Interpolate() should freeze the view model animation. On Mon, Feb 16, 2009 at 1:31 PM, Jorge Rodriguez bs.v...@gmail.com wrote: On Mon, Feb 16, 2009 at 12:00 PM, Yorg Kuijs yorg.ku...@home.nl wrote: 1. Does anybody know if it's