English Spawn Player Without Protection

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
Mami Tomoe
User
Offline Off
This thread was posted somewhere, but I couldn't find it.

How can I disable the CS2D built in spawn protection (that lasts for like a second)?

Is there a "legit" way to do it, or is it just something like re-spawning the player as soon as he spawned?
fish
07.12.20 08:57:50 am
Up
The Dark Shadow
User
Offline Off
I don't think It's normally possible with lua in a legit way. It would probably work broken in a legit way with lua. A not legit way would be modifying the dedicated server, I haven't investigated on the spawning function so I don't know If It's client-sided or server-sided it normally should be server-sided though. If it's server-sided you could modify it and remove the spawn-protection or do whatever you want with it.
edited 1×, last 07.12.20 09:08:14 am
07.12.20 04:18:14 pm
Up
MikuAuahDark
User
Offline Off
I think it's there to prevent spawnkill spamming.
file cs2d LuaJIT for Dedicated Server (13) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
08.12.20 06:59:13 pm
Up
Mami Tomoe
User
Offline Off
@user MikuAuahDark: Yes, but in a server that I'm making there is no need for that (death match random spawn points).

So a player just spawns besides a player, and for like a second, is invulnerable, which is unfair.
fish
12.12.20 01:00:10 am
Up
TimeQuesT
User
Offline Off
An ugly way would be, not even letting players die. Using setpos instead, sure could solve your problem, but would open alot of others.

This disgusting lua-only-hack is the only thing that comes into my mind (doing it lua only ofc ).

Sure as @user The Dark Shadow mentioned, is the best option. There are tools like Ghidra that makes this 'exceptional hacking' easy. You should give 'program advancing' (lol) a try.
Muh
16.12.20 03:07:14 pm
Up
softwarefan744
User
Offline Off
I also think that @user The Dark Shadow: has a good point! If you really want to disable the spawn protection, maybe that would be the best way to do so.
To the start Previous 1 Next To the start