PDA

View Full Version : Hidden Scripts



EvoloZz
18th November 2012, 13:58
Does anyone know how to hide scripts, so when other players join your server, they wont see any of your scripts in the .iwd files.

kung foo man
18th November 2012, 14:04
Hey, there are two ways:

1. Put all scripts into a private .iwd and name it: foo_svr_bar.iwd (the important part is _svr_). Its working on 1.2 and 1.3, NOT on 1.0

2. Dont put your scripts in an .iwd! Just create the folder-structure like it would be in the .iwd

Dont forget for both ways:


set sv_allowdownload 0


So only fastdownloads are possible like described here: http://killtube.org/showthread.php?674-Fastdownload-in-Domain-P&highlight=fastdownload

Have fun with private scripts :)

EvoloZz
18th November 2012, 14:09
Hey, there are two ways:

1. Put all scripts into a private .iwd and name it: foo_svr_bar.iwd (the important part is _svr_). Its working on 1.2 and 1.3, NOT on 1.0

2. Dont put your scripts in an .iwd! Just create the folder-structure like in would be in the .iwd

Dont forget for both ways:


set sv_allowdownload 0


So only fastdownloads are possible like described here: http://killtube.org/showthread.php?674-Fastdownload-in-Domain-P&highlight=fastdownload

Have fun with private scripts :)

So I must make maps/mp/gametypes folder into fs_game and throw all scripts there?

kung foo man
18th November 2012, 14:12
Yep, correct.

Sense
10th January 2013, 20:27
If you are on patch 1.0 you can just throw the scripts into fs_game as fs_game/maps/mp/gametypes/dm.gsc or w.E And if you dont want people to /download your gsc's you should add self setClientCvar("download", "none"); at the bottom of the Callback_PlayerConnect().

Mitch
12th January 2013, 19:15
If you are on patch 1.0 you can just throw the scripts into fs_game as fs_game/maps/mp/gametypes/dm.gsc or w.E And if you dont want people to /download your gsc's you should add self setClientCvar("download", "none"); at the bottom of the Callback_PlayerConnect().

There is a workaround for: self setClientCvar("download", "none"); (i am not telling what, to ensure the safety, but someone who knows the cod engine will know how to)
You can only protect your scripts completely on Linux with a preload script.