sv_pure discussion and possible solution

All questions will get our full attention
User avatar
Natus Zeldrin
Posts: 6
Joined: Wed Feb 18, 2009 12:13 pm
Location: Nuke Silo, Northern Denmark

sv_pure discussion and possible solution

Post by Natus Zeldrin » Wed Feb 18, 2009 8:21 pm

Being a man who uses custom content extensively, I have split feelings towards sv_pure. On one hand, I hate it because it prevents me from using my custom content (skins and sounds) and on the other hand, I love it for preventing wallhacks. Many servers either have sv_pure on or off, but hardly any use the whitelist, which is what I would like to adress here. I have taken the default whitelist from Valve's Developer Community and modified it in such a way that it allows:

- Weapon Skins
- Custom Sounds
- Item (E.G. Ammo Boxes and Medikit) skins

It is uploaded here: http://www.mediafire.com/?yjzmwmmz0zx

All you have to do to get it to work is to replace the old sv_pure_whitelist.txt on your server with this one (DON'T FORGET TO BACKUP!) and set sv_pure 1. Once that's done, people can enjoy their custom content without having to contend with wallhackers using transparent skins.

Contructive critisism and opinions from people who know what they're talking about is welcomed.
Image

"I have yet to backstab a girl, but it's about time." Said to Sherbit

User avatar
Natus Zeldrin
Posts: 6
Joined: Wed Feb 18, 2009 12:13 pm
Location: Nuke Silo, Northern Denmark

Re: sv_pure discussion and possible solution

Post by Natus Zeldrin » Wed Feb 18, 2009 8:38 pm

Thought I'd show I ain't just all talk and suggest something alternative rather than just moan. :-D
Image

"I have yet to backstab a girl, but it's about time." Said to Sherbit

User avatar
kab
Posts: 144
Joined: Sun Jul 13, 2008 12:58 pm

Re: sv_pure discussion and possible solution

Post by kab » Wed Feb 18, 2009 10:00 pm

As far as i can see your white list appears to be quite "broad". This seems to allow all kinds of custom sounds. For example, dubious stuff like "custom" footsteps and for example Spy cloak, disguise, failed backstab / successful backstab & decloak sounds should work.
materials\... from_steam
models\... from_steam
sound\... allow_from-disk
I suggest to be more specific and refer to single files. The syntax of the white list allows for that:
// Three types of file specifications:
//
// 1. directory\*.* - refers to all files under the directory
// 2. directory\... - refers to all files under the directory and all directories under that (recursively)
// 3. directory\filename - refers to a single file
Weapon models:

I can only guess that your setting applies to viewmodels (the ones visible on your screen, first person) and worldmodels (those you see on other players and dropped on the ground). Personally, i would only allow viewmodels. That way people can customize their personal weapons, but not throw in a bright pink sniper rifle.


Nothing against custom content, but a proper whitelist should be very specific about which files it allows.

User avatar
DragoonKnight
Posts: 3675
Joined: Wed Jun 25, 2008 6:38 pm
What is 3hirty p1us 4orty?: 4
Location: In the shadows, waiting persistently for the right moment to strike...

Re: sv_pure discussion and possible solution

Post by DragoonKnight » Wed Feb 18, 2009 11:14 pm

hmm custom sounds, maybe some UT sounds every time our best snipers headshot us into oblivion
Dare you to enter the Festertrix? Home of the slow motion Weed!
ImageImageImage

User avatar
Natus Zeldrin
Posts: 6
Joined: Wed Feb 18, 2009 12:13 pm
Location: Nuke Silo, Northern Denmark

Re: sv_pure discussion and possible solution

Post by Natus Zeldrin » Thu Feb 19, 2009 12:09 am

jased10s wrote:Thats quake sounds dragoon , Nice advice on the tidying up kab.
Actually, you're wrong. The "HEADSHOT!" sound he's referring to originates from UT. Heck, it's even in UT3!

With regards to kab's suggestions I have made a new version with some error fixes and modifed sound permissions that only allow weapon sounds, menu sounds and game start music.

As for allowing viewmodels without allowing worldmodels, it'll take the duration of a small world war to code, since you have to code it for each individual weapon. I have however made it so that sniper worldmodels cannot be changed, which fixes most of the problem.

The new file is located here: http://www.mediafire.com/?mzizknh1mnz" onclick="window.open(this.href);return false;
Image

"I have yet to backstab a girl, but it's about time." Said to Sherbit

User avatar
DragoonKnight
Posts: 3675
Joined: Wed Jun 25, 2008 6:38 pm
What is 3hirty p1us 4orty?: 4
Location: In the shadows, waiting persistently for the right moment to strike...

Re: sv_pure discussion and possible solution

Post by DragoonKnight » Thu Feb 19, 2009 2:30 am

jased10s wrote:Ohhh monster kill maybe.... lolz or wicked sick....
Im so old im forgetting tings
cue sad music :violin:
Dare you to enter the Festertrix? Home of the slow motion Weed!
ImageImageImage

User avatar
Fester
Posts: 6514
Joined: Thu Mar 13, 2008 6:47 pm
What is 3hirty p1us 4orty?: 4
Location: Right Here!
Contact:

Re: sv_pure discussion and possible solution

Post by Fester » Thu Feb 19, 2009 11:08 am

we had the sounds for a bit sure.. and everyone complained that they we're "DLing" them every time when connecting to server... so we dropped them.. as for the white list i am still not sold on the idea even though he spent the best part of yesterday going on about it in steam to me.. i really dont think he should start a career in sales anyway :butt:
Image

User avatar
LazyEagle
Posts: 2888
Joined: Sat May 10, 2008 5:53 pm

Re: sv_pure discussion and possible solution

Post by LazyEagle » Thu Feb 19, 2009 2:21 pm

Natus Zeldrin wrote:
jased10s wrote:Thats quake sounds dragoon , Nice advice on the tidying up kab.
Actually, you're wrong. The "HEADSHOT!" sound he's referring to originates from UT. Heck, it's even in UT3!

With regards to kab's suggestions I have made a new version with some error fixes and modifed sound permissions that only allow weapon sounds, menu sounds and game start music.

As for allowing viewmodels without allowing worldmodels, it'll take the duration of a small world war to code, since you have to code it for each individual weapon. I have however made it so that sniper worldmodels cannot be changed, which fixes most of the problem.

The new file is located here: http://www.mediafire.com/?mzizknh1mnz" onclick="window.open(this.href);return false;
Excuse my ignorance about all of this, but if you could load up your own weapons models/skins, surely it would be very easy to create a hacck which would mean that everyone's weapon would be visible from where you are, thus letting you know where all your enemies are?

Am I grasping the wrong end of the stick, or would this be possible?
If so, I'd have to be against it!
Image

User avatar
Natus Zeldrin
Posts: 6
Joined: Wed Feb 18, 2009 12:13 pm
Location: Nuke Silo, Northern Denmark

Re: sv_pure discussion and possible solution

Post by Natus Zeldrin » Thu Feb 19, 2009 2:58 pm

It can be done, but as I detailed, worldmodels can also be made unmodifiable. However, this would take a long time to code. Instead, I have made the world model for the Sniper Rifle impossible to midfy, which fixes most of the problem. Besides, if you wanted to hack, you would hack the characters, not the weapons. Character mods are not disabled by default, and neither are they currently on the server, so I see no problem there, either.
Image

"I have yet to backstab a girl, but it's about time." Said to Sherbit

User avatar
infidel
Posts: 93
Joined: Sat Feb 14, 2009 11:26 pm

Re: sv_pure discussion and possible solution

Post by infidel » Thu Feb 19, 2009 7:08 pm

"let us not go to Camelot, for it is a silly place"

sv_pure/whitelist is somewhat broken, has been for aeons.
As an avid user of custom content, you must surely be aware of this...having to restart your client or even delete content when changing servers...or having custom content working on startup but then changing to wireframe(OMGHAX!!) or checkers on level change

worldmodels being unmodifiable would not take a long time to "code"
there is no coding involved, just add an entry for each weapon to the whitelist?!?!? ...hardly a warsworth...

how does fixing for one model fix "most of the problem" tho?

What you are suggesting is more than just a simple file swap, any changes need testing which puts a burden on admin resources, and as can be seen from the responses, may need refinement and rework.
tbh, I can't see the benefit in your suggestions, it seems like more effort than it is worth to bring very little to very few, but these be but my thoughts.

Post Reply