Raised This Month: $ Target: $400
 0% 

Solved [TF2] Replace player_start with player_teamspawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BreadTeleporterYT
New Member
Join Date: Aug 2023
Old 08-07-2023 , 15:53   [TF2] Replace player_start with player_teamspawn
Reply With Quote #1

I am running a TF2 server that frequently runs maps from other games (HL2, GMod, etc.) and all of those games use info_player_start as their spawnpoint, however TF2 is not compatible with them at all, and will just spawn the player at 0,0 whenever the map is loaded.

I have tried to use Stripper:Source to fix this, however it does not appear to be working (Config below)
Is there a plugin that can provide this functionality, preferably also replacing CS:S T and CT spawns with Red and Blu teamspawns respectively?


Stripper:Source config
Code:
modify:
{

    match:
    {
        "classname": "info_player_start"
    }

    replace:
    {
        "classname": "info_player_teamspawn"
    }
}

Last edited by BreadTeleporterYT; 08-08-2023 at 04:17.
BreadTeleporterYT is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 08-08-2023 , 00:21   Re: [TF2] Replace player_start with player_teamspawn
Reply With Quote #2

As described in the configuration documentation, there is no colon character between the key and value; that only applies to the section headers.

Code:
modify:
{
    match:
    {
        "classname" "info_player_start"
    }

    replace:
    {
        "classname" "info_player_teamspawn"
    }
}
It looks like CS:S uses info_player_counterterrorist and info_player_terrorist, so you may be able to create sections to match each and replace as before, then add a TeamNum entry with the appropriate team number.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 08-08-2023 at 08:24.
nosoop is offline
BreadTeleporter
New Member
Join Date: Feb 2023
Old 08-08-2023 , 04:15   Re: [TF2] Replace player_start with player_teamspawn
Reply With Quote #3

Thanks for the help!
I didn't notice that there was no colon in-between the key and the value (Syntax looked similar to JSON, so I assumed there would be)

I was able to fix the issue by updating Stripper:Source.
I did not realise that there was a newer version other than the one on the stripper website.
(For anyone else looking, these versions can be found here)

Thank you for helping!
BreadTeleporter is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode