Raised This Month: $ Target: $400
 0% 

Solved [CS:GO] How to send snowball hit effect to client


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-01-2019 , 05:09   Re: [CS:GO] How to send snowball hit effect to client
Reply With Quote #11

I looked what screen effect is this.

It's particle effect, you can find from Hammer editor (using entity "info_particle_system").
Code:
	"snow_hit_player_screeneffect"
	"snow_hit_player_screeneffect_bb"
	"snow_hit_player_screeneffect_b"
But problem is in "info_particle_system" (in VScript DispatchParticleEffect(string, Vector, Vector))
this effect can't execute on specific targets.
This function use position and angle, where it will spawn particle and show to all players. (And can be attach to player if like).

Because these snow particles are screeneffect, it will show to everyone when you create/activate this, just single one.


So, using event "snowball_hit_player_face" work great.
Maybe this event trigger -> to create particle effect inside player game, client side. Never know.




Or I haven't find other way to create particle effect.
*edit
Maybe tempent are for client side particles...

Last edited by Bacardi; 01-01-2019 at 05:35.
Bacardi is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-01-2019 , 06:21   Re: [CS:GO] How to send snowball hit effect to client
Reply With Quote #12

Quote:
Originally Posted by Bacardi View Post
I looked what screen effect is this.

It's particle effect, you can find from Hammer editor (using entity "info_particle_system").
Code:
	"snow_hit_player_screeneffect"
	"snow_hit_player_screeneffect_bb"
	"snow_hit_player_screeneffect_b"
But problem is in "info_particle_system" (in VScript DispatchParticleEffect(string, Vector, Vector))
this effect can't execute on specific targets.
This function use position and angle, where it will spawn particle and show to all players. (And can be attach to player if like).

Because these snow particles are screeneffect, it will show to everyone when you create/activate this, just single one.


So, using event "snowball_hit_player_face" work great.
Maybe this event trigger -> to create particle effect inside player game, client side. Never know.




Or I haven't find other way to create particle effect.
*edit
Maybe tempent are for client side particles...
I think you can attach an ent of info_particle_system and I'm sure you can make it visible only for specific players.

https://forums.alliedmods.net/showthread.php?t=311043

Here I create confetti only to people that wanna see.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-01-2019 , 06:54   Re: [CS:GO] How to send snowball hit effect to client
Reply With Quote #13

...I tried parent enity to player, but maybe I test it again.

In your plugin, you are using SDKHook_SetTransmit and removing flag FL_EDICT_ALWAYS from info_particle_system, that could do trick.


I just notice in Hammer editor "info_particle_system", there is 1 - 63 Control Points slots. Maybe those have something to do also ? :S
Bacardi is offline
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 16:07.


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