Raised This Month: $ Target: $400
 0% 

Clear Model Cache


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-18-2005 , 09:57   Clear Model Cache
Reply With Quote #1

When a client is respawned, (twice of course, which allows for weapon generation) they leave a "corpse", so to say. Upon round start, all of those "corpses" that have been sitting there lagging the server down, are cleared. Obviously a method is executed between that time, and I was hoping that someone might know that method for clearing those models from the server....?

I believe keeping my server lag free is extremely important. Also, I remember from a plugin I used in AMX mod that would spit out models in the direction your aiming. After a while, they would dissapear. So that means that somewhere..... there is a function for doing this.
Any help is greatly appreciated.
__________________
Capitalization is the difference between,
"I helped my Uncle Jack off a horse" and,
"I helped my uncle jack off a horse".
- Unknown
dcyuri7 is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-18-2005 , 15:32  
Reply With Quote #2

Its a very simple remove_entity function.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-20-2005 , 00:41  
Reply With Quote #3

thanks.
__________________
Capitalization is the difference between,
"I helped my Uncle Jack off a horse" and,
"I helped my uncle jack off a horse".
- Unknown
dcyuri7 is offline
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-20-2005 , 17:48  
Reply With Quote #4

It is too bad that it crashes the server.
__________________
Capitalization is the difference between,
"I helped my Uncle Jack off a horse" and,
"I helped my uncle jack off a horse".
- Unknown
dcyuri7 is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 03-20-2005 , 21:12  
Reply With Quote #5

Incorrect usage of respawn native you should never attempt to respawn someone twice which = what you have dead bodies floating around the map. Suprised AMXX Team hasn't fixed this native yet

set deadflags to respawnable
reset the iuser1 data to 0 for the camera
then respawn the client
T(+)rget 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 14:09.


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