Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prevent respawn of players like in CA

#1
Whatever.
Reply

#2
Gametypes are a tough place to start if you're just getting used to the language and our codebase (both of which are large tasks). They have bits and pieces in a few places, not very organized yet.

CA in particular has a lot of weird hacks throughout the codebase to support what it does (keeping players as spectators but keeping their score and team). the .caplayer field for example tells other code not to change the player in too many ways.
The part that blocks joining though, would be in the CA mutator file, in the PutClientInServer hook. It transmutes the player back into an observer when they try to join.
[Image: 230.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Privacy information for players (ingame) [GDPR] Kaesebrot 11 5,725 11-07-2018, 06:15 AM
Last Post: Halogene
Thumbs Up I would like to work with Xonotic spcdrgn 2 3,525 03-16-2016, 10:57 AM
Last Post: spcdrgn
  I would like to contribute CjStaal 2 3,445 08-23-2015, 01:51 AM
Last Post: Melanosuchus
  Getting Position of Other Players/Bots Client-Side ehrenbrav 7 8,641 05-10-2015, 12:42 PM
Last Post: ehrenbrav
  Star Wars-like assault map project forseti 1 3,120 02-21-2012, 07:23 PM
Last Post: edh
  I'd like to help with Xonotic Frogging101 4 5,038 09-25-2011, 01:00 PM
Last Post: Mr. Bougo
  What are CSQC players? ThePWTULN 3 5,378 09-26-2010, 04:19 PM
Last Post: Mr. Bougo
  If you would like to contribute to Xonotic Dokujisan 0 11,263 03-18-2010, 06:25 AM
Last Post: Dokujisan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-