AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   bi-directional teleport attribute (https://forums.alliedmods.net/showthread.php?t=193376)

nergal 08-18-2012 18:20

bi-directional teleport attribute
 
I tried to add this on the gunslinger in my server but it does NOT work. :/
here's how i have it

"142" //gunslinger
{
"level" "30"
"preserve-attributes" "1"

"1" "125 ; 50"
"2" "277 ; 2"
"3" "276 ; 1"
}

Powerlord 08-18-2012 20:27

Re: bi-directional teleport attribute
 
Quote:

Originally Posted by nergal (Post 1775597)
I tried to add this on the gunslinger in my server but it does NOT work. :/
here's how i have it

"142" //gunslinger
{
"level" "30"
"preserve-attributes" "1"

"1" "125 ; 50"
"2" "277 ; 2"
"3" "276 ; 1"
}

Well, in MvM it's applied to the Construction PDA (item 25 or 737). I don't know if that makes a difference.

nergal 08-19-2012 15:18

Re: bi-directional teleport attribute
 
Quote:

Originally Posted by Powerlord (Post 1775664)
Well, in MvM it's applied to the Construction PDA (item 25 or 737). I don't know if that makes a difference.

ohhh im such an idiot...... thx powerlord!

edit: still doesn't work >=/

Ralrus 08-30-2012 21:39

Re: bi-directional teleport attribute
 
from personal testing bidirectional teleport and disposable sentry are only enabled in mvm, even if you apply the attributes some other way, including through items_game.txt

Powerlord 08-31-2012 09:12

Re: bi-directional teleport attribute
 
Quote:

Originally Posted by Ralrus (Post 1787478)
from personal testing bidirectional teleport and disposable sentry are only enabled in mvm, even if you apply the attributes some other way, including through items_game.txt

Of course, Valve may be doing a "holiday" check to determine if MvM is running. I say this because they added an entry to the holidays list for it just like they did Meet the Pyro.

Force Holidays 1.7 or newer can force the MvM "holiday" on for all maps. I highly recommend setting tfh_mannvsmachine 1 in autoexec.cfg to make sure it gets executed before the first map starts, though.

That is, assuming autoexec.cfg executes after plugins load...

nergal 08-31-2012 22:52

Re: bi-directional teleport attribute
 
Quote:

Originally Posted by Powerlord (Post 1787783)
Of course, Valve may be doing a "holiday" check to determine if MvM is running. I say this because they added an entry to the holidays list for it just like they did Meet the Pyro.

Force Holidays 1.7 or newer can force the MvM "holiday" on for all maps. I highly recommend setting tfh_mannvsmachine 1 in autoexec.cfg to make sure it gets executed before the first map starts, though.

That is, assuming autoexec.cfg executes after plugins load...

still not working, even with tfholidays on

Leonardo 08-31-2012 23:21

Re: bi-directional teleport attribute
 
well then it's looking for CTFGameRulesProxy::m_bPlayingMannVsMachine, I guess. Or tf_gamemode_mvm 1.

nergal 09-01-2012 12:53

Re: bi-directional teleport attribute
 
Quote:

Originally Posted by Leonardo (Post 1788301)
well then it's looking for CTFGameRulesProxy::m_bPlayingMannVsMachine, I guess. Or tf_gamemode_mvm 1.

will it interfere with Arena mode?

Leonardo 09-01-2012 13:04

Re: bi-directional teleport attribute
 
maybe.

pheadxdll 09-02-2012 09:53

Re: bi-directional teleport attribute
 
Not too far off, checked the code and it looks like it checks CGameRules::m_bPlayingMannVsMachine. Only if it's 1 does it do any checking for the bidirectional teleport attribute.

You'd have to set the value with an extension or use GameRules_SetProp but who knows what issues you may cause if you set that value on a non-MvM game mode.


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

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