Raised This Month: $51 Target: $400
 12% 

[CSGO] Creating Projectiles (knives, rockets, etc)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joshtrav
Senior Member
Join Date: Sep 2009
Old 08-20-2017 , 14:07   [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #1

Up until the 8/17 update, I have been creating projectiles with CreateEntityByName as flashbang_projectile, changing the skin to a knife/rocket, etc.

Recently, when doing so if the projectile hits an opposing team it immediately crashes the server. It can hit walls, team players, etc., but not enemy players.

Anyone suffering similar issues?

Edit. - let me also say I use to do it with hegrenade_projectile until a year or so ago, when that behavior also changed to the above and I swapped to flashbang_projectile. It currently behaves this way for flashbang, decoy, smokegrenade and hegrenade projectiles.
__________________


Last edited by joshtrav; 08-20-2017 at 14:07.
joshtrav is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 08-20-2017 , 15:15   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #2

Hello.

"Recently, when doing so if the projectile hits an opposing team it immediately crashes the server."
Do you use SDKHooks_TakeDamage ?
Kriax is offline
joshtrav
Senior Member
Join Date: Sep 2009
Old 08-20-2017 , 15:58   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #3

No, the projectile itself has no health. Since its created as a flashbang_projectile I have been using :

Code:
SDKHook(entity, SDKHook_EndTouchPost, projectileTouch);
To determine when it makes contact with anything. Should add that I have recently tried using StartTouch and that also led to server crashing.

Another edit - I have removed the hook completely, to see if it had any relation. It does not, the server will still crash.
__________________


Last edited by joshtrav; 08-20-2017 at 16:12.
joshtrav is offline
mocchi
New Member
Join Date: Sep 2017
Old 09-07-2017 , 18:00   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #4

Hello everyone.

I also have been using entity flashbang_projectile as item drops on player event death, and it crashes the server when the enemy team is hit by/or touch the item. On some other map I tested I noticed this is not happening.

I tried removing entity touch hooks/set m_takedamage to none/set different m_CollisionGroup & m_usSolidFlags but still server crashes.

Just today I found a solution that works for me is to remove/comment the code with m_hThrower property. I leave only with m_hOwnerEntity property and server is fine. But I need to test it some more. Hope this helps.
mocchi is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 09-07-2017 , 18:09   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #5

Why not use a prop_dynamic_override?
__________________
micapat is offline
mocchi
New Member
Join Date: Sep 2017
Old 09-07-2017 , 18:52   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #6

Quote:
Originally Posted by micapat View Post
Why not use a prop_dynamic_override?
The server plugin make use of m_flElasticity for setting item bounce properties. I tried to use prop_dynamic_override/prop_physics_override before but did not find bounce settings similar to projectiles.
mocchi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-07-2017 , 19:19   Re: [CSGO] Creating Projectiles (knives, rockets, etc)
Reply With Quote #7

Quote:
Originally Posted by mocchi View Post
Hello everyone.

I also have been using entity flashbang_projectile as item drops on player event death, and it crashes the server when the enemy team is hit by/or touch the item. On some other map I tested I noticed this is not happening.

I tried removing entity touch hooks/set m_takedamage to none/set different m_CollisionGroup & m_usSolidFlags but still server crashes.

Just today I found a solution that works for me is to remove/comment the code with m_hThrower property. I leave only with m_hOwnerEntity property and server is fine. But I need to test it some more. Hope this helps.
Hopefully it is this.
I tried looking this crash in short time long time ago, it was so random.
Csgo crashed also when I used "mirror" damage on server, not sure but looks like teammates was using knifes to each other
__________________
Do not Private Message @me
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 07:13.


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