Forum

> > CS2D > Scripts > Disable Sprays
Forums overviewCS2D overview Scripts overviewLog in to reply

English Disable Sprays

10 replies
To the start Previous 1 Next To the start

old Re: Disable Sprays

Rainoth
Moderator Off Offline

Quote
Not quite sure but you might want to untick "Enable spray transfer" or whatever it's called.
In New Game

Apart from that, I don't know of other ways to do it...

old Re: Disable Sprays

DC
Admin Off Offline

Quote
It's indeed impossible. Disabling cs2d cmd sv_spraytransfer as server would just disable transfer of custom spraylogo images.

You may perform an action with Lua when someone sprays a logo though (using the cs2d lua hook spray hook). For example kick that player. I guess the logo will be sprayed anyway but I think most people will only spray once that way.

old Re: Disable Sprays

Rainoth
Moderator Off Offline

Quote
Is spray considered some kind of "always on top" image ? It could be possible to place an image of tile using "<tile:X>" to cover the spray...

old Re: Disable Sprays

Avo
User Off Offline

Quote
@user DC: What will happen if he disables sv_spraytransfer and removes default spraylogos from the folder(if it's possible, I'm not sure)?

old Re: Disable Sprays

DC
Admin Off Offline

Quote
I'm not sure... I guess that you either won't see any sprays or that the game crashes. I don't think that this would be an acceptable solution for the problem anyway.

old Re: Disable Sprays

Accurator
User Off Offline

Quote
In tibia, you can place items on the ground. You can also place them over spraylogos, which will hide them. So you could probably cover it right after spraying. The only problem would be the smoke effect of spraying.

old Re: Disable Sprays

MikuAuahDark
User Off Offline

Quote
@user Accurator: That souldn't be a problem

1
2
3
4
5
addhook("spray","_spray")
function _spray(id)
	local i=image("<tile:"..tile(player(id,"tilex"),player(id,"tiley"),"frame")..">",math.floor(player(id,"tilex"))*32+16,math.floor(player(id,"tiley"))*32+16,0)
	timer(120*1000,"parse","lua freeimage("..i..")")
end
Untested
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview