Forum

> > CS2D > Scripts > Add hat to class
Forums overviewCS2D overview Scripts overviewLog in to reply

English Add hat to class

27 replies
Page
To the start Previous 1 2 Next To the start

old Re: Add hat to class

GeoB99
Moderator Off Offline

Quote
There's nothing special about this file. You can search this file in your cs2d folder and sys folder path. Afterwards, you'll have to open this file with Notepad and here you can see some notices and such. With this file, you can add a path line of the file which the respective file is sent to the clients (players) while they join your server as user Rainoth said.

Although you can only send image extensions (bmp,jpg,jpeg,png) and sound extensions (wav,ogg), other extensions aren't allowed.

Therefore, if you want for example to send your hats files, then you have to write their path in the servertransfer.lst file.
Example by writing a path of a gfx (image) file to send:
1
gfx/myhats/evil.png
NOTE: Never add invalid or wrong paths, otherwise it won't work.
edited 1×, last 26.07.15 03:44:33 pm

old Re: Add hat to class

MixTape
User Off Offline

Quote
And how to change weapon skin? I must have change this original file(for example: hat's i have earlier, i dont have to download it.) or i can have it only on my server?

old Re: Add hat to class

Rainoth
Moderator Off Offline

Quote
If you want to change weapon skins for all players, you can only cover original skins with images of your own.

old Re: Add hat to class

MixTape
User Off Offline

Quote
Ok thank you very much my friends. Im sure, i will have a lot of problems so see you later

Ok, last problem IN THIS TOPIC (^^).
It's good code in servertransfer.lst? I dont think but i can't test it ;P

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// List additional files for your server here (one file per line)
// These files will be sent to the clients automatically (if they allow it + don't have the files already)
// All paths are relative to the CS2D folder (e.g.: gfx/blood.bmp)
// Only images (bmp,jpg,jpeg,png) and sounds (wav,ogg) are allowed! Other files will be ignored!
// Please don't add many/large files here because otherwise joining your server will take forever!
//
// New since 0.1.1.8: HTTP Downloads
// You can also host your files on HTTP webservers instead of your game server.
// Use the following scheme to add HTTP file transfers:
// scheme: http://www.url.tld/myfile (web URL) > folder/file (local relative path)
// example: http://www.unrealsoftware.de/img/icons/cs2d.png > gfx/cs2dicon.png
//
// Warning: HTTP downloads might freeze the client for a few seconds if the webserver is slow!

gfx/hats/urso_hat.png
gfx/hats/swat_hat.png
gfx/hats/sonic_hat.png
gfx/hats/pheonix_hat.png
gfx/hats/skull_hat.png
gfx/hats/headcrab_hat.png

old Re: Add hat to class

GeoB99
Moderator Off Offline

Quote
Ye, is good. As long they're valid paths and these hats files aren't corrupted/damaged then it'll work perfectly, so you don't be worried about that.

old Re: Add hat to class

MixTape
User Off Offline

Quote
@user GeoB99: but my friend when he connect doesn't download any files and he doesn't see any hats :C I have this hat's in:
1
2
3
4
5
6
gfx/hats/urso_hat.png
gfx/hats/swat_hat.png
gfx/hats/sonic_hat.png
gfx/hats/pheonix_hat.png
gfx/hats/skull_hat.png
gfx/hats/headcrab_hat.png

I was host this server with hamachi.

Okay, so 2nd last question (:D), how to add np. stealth suit? (this with invisible), cause when i add ID next to ID weapon's it doesn't work.

old Re: Add hat to class

Rainoth
Moderator Off Offline

Quote
For question one:
You defined wrong OR he's got his options set to not download particular things and doesn't download your hats

For question two:
Execute this command line
1
setarmor <ID> <Armor Points>
1-200 will give armor
201 - light armor
202 - armor
203 - heavy armor
204 - medic armor
205 - super armor
206 - stealth suit (THIS ONE)
So...
1
setarmor 1 206
add 'rcon' in front of the command if you're not playing via "New Game"

old Re: Add hat to class

MixTape
User Off Offline

Quote
Ok, i was thinking why i can't give 300 armor but now i know. For example (for other people with this problem, who's dont understand)
I must change
1
parse ("setarmor "..id.." 200")
to
1
parse ("setarmor "..id.." 206")
Thank you
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview