Forum

> > CS2D > Scripts > Is There a Way to Disable Spawn Protection
Forums overviewCS2D overview Scripts overviewLog in to reply

English Is There a Way to Disable Spawn Protection

2 replies
To the start Previous 1 Next To the start

old Is There a Way to Disable Spawn Protection

gny OP
User Off Offline

Quote
I’d like to ask if it’s possible to disable the few seconds of invincibility that players get right after they spawn. Is there any method or script in Lua that can remove this spawn protection? I want to use it for deathmatch game mode.

old Re: Is There a Way to Disable Spawn Protection

DC
Admin Off Offline

Quote
No, this is hardcoded. I don't think there's a way to change it with settings/Lua.
Also the hits just don't register so you can't even detect them with Lua (unless you somehow use your own hit detection which doesn't sound reasonable).

Fun fact: Tactical shields still register hits (when shot from the right angle) even when the spawn protection is on. This also triggers cs2d lua hook shieldhit. But I'm afraid that doesn't help...

old Re: Is There a Way to Disable Spawn Protection

gny OP
User Off Offline

Quote
I see. I tried hit detection, but it didn’t work reliably. However, I discovered that the Tesla Coil (ID 92) can deal damage even through spawn protection. I guess this is because it uses a completely different configuration.

Thanks for the quick response tho!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview