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

Dancing Bonez


Post New Thread Reply   
 
Thread Tools Display Modes
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 12-11-2010 , 20:35   Re: Dancing Bonez
Reply With Quote #21

This would have been awesome a couple months ago for Halloween!

I will definitely remember this for next year around that time!
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
TechKnow
Senior Member
Join Date: Nov 2007
Old 01-13-2011 , 19:42   Re: Dancing Bonez
Reply With Quote #22

Plugin UPDATED so the download ini file is no longer needed to help compatibility with linux servers, ALSO remember to disable your sv_pure in your server.cfg
__________________
"Stupd is what Stupid dose"
MY MODELS SITE
http://techknowmodels.19.forumer.com/index.php
TechKnow is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-01-2011 , 15:45   Re: Dancing Bonez
Reply With Quote #23

@ TechKnow

Some notes:
There is already a PLATFORM_MAX_PATH define in SM (though, to be fair, it is the same size as your MAX_FILE_LEN define).

Code:
public Action:Event_RoundStart( Handle:event, const String:name[], bool:dontBroadcast ) {     if( GetConVarInt( gDbonezEnabled ) == 1 )     {         new ent = NULL_ENTITY;         while( ( ent = FindEntityByClassname( ent, "prop_dynamic_override" ) != NULL_ENTITY ) )         {             RemoveEdict( ent );         }     } }
Deleting all prop_dynamic_overrides at round start is a bit irresponsible since you could be deleting ents created by other sources. I recommend saving references to the entities in an adt_array on creation, then at round start, loop the array, removing the ent if the reference is still valid and then clear the array when done.

When removing, AcceptEntityInput(ent, "Kill") is a bit safer than RemoveEdict as it allows the game to clean up the ent and remove itself, rather than removing it forcefully.

Also, you're only doing your remove at round start if the plugin is enabled. If someone dies, skeleton is created, server op disables plugin, then new round starts, the skeleton will not get cleaned up. The cleanup should happen regardless of whether or not the plugin is still enabled.
psychonic is offline
TechKnow
Senior Member
Join Date: Nov 2007
Old 02-02-2011 , 00:09   Re: Dancing Bonez
Reply With Quote #24

Well that sounds great, go ahead and update the plugin and post it and I will update the main page of this plugin, sounds as if you know more on this, I was just pokeing around in the dark to get this to work the way I wanted it and posted the plugin when it worked.
__________________
"Stupd is what Stupid dose"
MY MODELS SITE
http://techknowmodels.19.forumer.com/index.php
TechKnow is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-02-2011 , 04:54   Re: Dancing Bonez
Reply With Quote #25

Quote:
Originally Posted by TechKnow View Post
Plugin UPDATED so the download ini file is no longer needed to help compatibility with linux servers, ALSO remember to disable your sv_pure in your server.cfg
To clarify... let people cheat with glass wall textures, you have been warned.
Bacardi is offline
TechKnow
Senior Member
Join Date: Nov 2007
Old 02-02-2011 , 05:15   Re: Dancing Bonez
Reply With Quote #26

There is always

sv_consistency 1
__________________
"Stupd is what Stupid dose"
MY MODELS SITE
http://techknowmodels.19.forumer.com/index.php
TechKnow is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-02-2011 , 06:04   Re: Dancing Bonez
Reply With Quote #27

Quote:
Originally Posted by TechKnow View Post
There is always

sv_consistency 1
Not affect material files *.vtf, *.vmt
I think it's check only models are they corrupted, not sure.
*edit
Code:
 - Whether the server enforces file consistency for critical files
What that means...

Famost servers are sv_pure 0, only place where players can "take advantage" use game own feature without getting vac-ban.

*edit
When set sv_pure 1, add this in pure_server_whitelist.txt
Code:
models\props_techknow\...    allow_from_disk

Last edited by Bacardi; 02-02-2011 at 06:51.
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 19:58.


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