English Custom Spawnpoints?

16 replies
Goto Page
To the start Previous 1 Next To the start
12.08.15 01:25:52 am
Up
HoOtix
User
Offline Off
Is it possible to make custom spawnpoints? For example, You spawn at your "basic" spawnpoint. But when you pass a special area/zone/point your "basic" spawn gets de-activated and then a new spawn activates, so after you die you spawn on the 'new' spawnpoint? I'm not sure if this is possible, but... Is it?
HoOtixGaming
12.08.15 02:14:21 am
Up
Talented Doge
User
Offline Off
Use cs2d cmd setpos to set players' positions to a new one.
Talented Doge
12.08.15 02:43:09 am
Up
Seekay
Reviewer
Offline Off
If you're talking about mapping, it is possible to de- and reactivate spawnpoints via triggers.

Call the first spawn "spawn1" and let's say a button triggers it and "spawn2".
Make sure "spawn2" gets deactivated first with a start trigger. Now kill yourself and watch the result. You should now always spawn at "spawn2".
Press the button again and kill yourself once more, now you always spawn at "spawn1".
You can also put effects (blinking lights, fire, etc.) with the same names around the spawns to make sure which ones are active.

This of course only makes sense if you're not in the Standard gamemode.
edited 2×, last 12.08.15 02:56:22 am
Wash your hands! :­)
12.08.15 10:01:46 am
Up
JeeewNazi
User
Offline Off
@user Talented Doge: cs2d cmd setspawn is better

Anyway i hope he wants the map editor method.
12.08.15 10:52:29 am
Up
Talented Doge
User
Offline Off
Are you kidding me? cs2d cmd setspawn doesn't even exist.
Talented Doge
12.08.15 01:53:28 pm
Up
JeeewNazi
User
Offline Off
Oh Sry,
The command is cs2d cmd spawnplayer
12.08.15 01:58:30 pm
Up
Talented Doge
User
Offline Off
cs2d cmd spawnplayer does the exactly same job as cs2d cmd setpos, except it has a spawn animation.
Talented Doge
13.08.15 06:36:22 am
Up
MikuAuahDark
User
Offline Off
@user Talented Doge: and trigger cs2d lua hook spawn hook, so be careful if you use cs2d cmd spawnplayer in cs2d lua hook spawn hook
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
13.08.15 10:29:00 am
Up
The Gajos
BANNED
Offline Off
Command cs2d cmd spawnplayer is good when you spawn player that is dead, because even when you will try to spawn player when he's alive, his weapons will disapper . So cs2d cmd setpos is better.
13.08.15 01:10:51 pm
Up
VADemon
User
Offline Off
@user The Gajos, Nothing hinders you from checking whether the player is alive and then using either cs2d cmd setpos or cs2d cmd spawnplayer

IMHO, the best and bullet-proof and hopefully fully bug-free (waow, so many pretty adjectives here) solution is to set the respawn time to n+1 and spawn the player manually at 1 second remaining.
+ no bugs, because we're not using setpos (what happens if the player spawns in between enemy turrets? Dunno. Think of hypothetical scripts using a player's spawnpoint position, they won't know this player's position was used right after spawn)
- the player is force-spawned, he cannot choose himself when to spawn
13.08.15 03:50:10 pm
Up
Seekay
Reviewer
Offline Off
You guys assume he's talking about Lua scripting. He never mentioned that. You don't need Lua to trigger spawnpoints.
Wash your hands! :­)
13.08.15 03:56:20 pm
Up
Talented Doge
User
Offline Off
I used to play on co-op maps with different spawn positions, so I think using trigger_move or whatever may work. Trigger_start the unused spawnpoints at start will work.
Talented Doge
13.08.15 03:57:20 pm
Up
Seekay
Reviewer
Offline Off
I already made a fully detailed post Yuki. ;_;
Wash your hands! :­)
13.08.15 03:57:36 pm
Up
gamus
User
Offline Off
Well, yes. Add a Trigger_Start triggering a Trigger_Delay (1 second) triggering unused spawnpoints.
13.08.15 03:59:00 pm
Up
Seekay
Reviewer
Offline Off
..why would you need a delay? That means in that second before it gets deactivated, someone can spawn there... that's no good.
Wash your hands! :­)
13.08.15 04:00:02 pm
Up
gamus
User
Offline Off
ok im dumb
13.08.15 04:10:59 pm
Up
Talented Doge
User
Offline Off
However when I actually tried, the deactivated spawnpoints still allow me to buy...

https://www.dropbox.com/s/nq8lm1bhqs9pwer/example.map?dl=0
Talented Doge
To the start Previous 1 Next To the start