Raised This Month: $ Target: $400
 0% 

[CS GO] Recreate env_sprite_oriented cause problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EzPz
Junior Member
Join Date: Oct 2014
Old 03-30-2017 , 21:31   [CS GO] Recreate env_sprite_oriented cause problem
Reply With Quote #1

Hello, i need to recreate about 7 env_sprite_oriented every ~half second
But when i try spawn weapons at the same time they disappear after ~half second, then i disable this all back to normal...

StripWeapons work fine, problem only with create
Weapon - weapon_deagle

public OnPostThinkPost(client)
{
if(FloatCompare(PrevTime[client], GetGameTime()) == 1)return;
.....
delete 7 env_sprite_oriented
create 7 env_sprite_oriented
PrevTime[client] = GetGameTime()+0.5;
}

Tried:
Spawn weapons after deletion
While loop on give weapon
Check for need spawn weapon for clients before and add 0.5 wait time to avoid this error.

If here some kinda of limit on create per frame?

Last edited by EzPz; 03-30-2017 at 21:41.
EzPz 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:04.


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