Raised This Month: $51 Target: $400
 12% 

Solved [TF2] How to match teleporters?


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 08-10-2014 , 12:44   Re: [TF2] How to match teleporters?
Reply With Quote #11

The matchingTeleporter key and corresponding m_iszMatchingMapPlacedTeleporter data prop are for map-placed teleporters, which follow a bit different logic.

You should be able to use something like this to get at the internal var that holds the normal matching teleporter handle.
Attached Files
File Type: sp Get Plugin or Get Source (matching-teleporter.sp - 165 views - 1.0 KB)
File Type: txt matching-teleporter.games.txt (162 Bytes, 81 views)
psychonic is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 08-10-2014 , 19:25   Re: [TF2] How to match teleporters?
Reply With Quote #12

Quote:
Originally Posted by psychonic View Post
The matchingTeleporter key and corresponding m_iszMatchingMapPlacedTeleporter data prop are for map-placed teleporters, which follow a bit different logic.

You should be able to use something like this to get at the internal var that holds the normal matching teleporter handle.
THANK YOU! gamedata file was not working, but I modified it to:

PHP Code:
"Games"
{
    
"#default"
    
{
    
"Keys"
    
{
        
"StartProp"        "m_bMatchBuilding"
    
}
    
    
"Offsets"
    
{
        
"MatchingTeleporterOffset"
        
{
            
"windows"    "4"
            "linux"        "4"
            "mac"        "4"
        
}
    }
}

and it works now!!!

There is a small problem though. The entrance acts as the exit and the exit acts as the entrance. If you pick it up and then place down it changes that back for one teleportation and then goes back.
__________________

Last edited by luki1412; 08-10-2014 at 19:41.
luki1412 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 07:05.


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