Raised This Month: $32 Target: $400
 8% 

bi-directional teleport attribute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 08-18-2012 , 18:20   bi-directional teleport attribute
Reply With Quote #1

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"
}
__________________

Last edited by nergal; 08-18-2012 at 18:21.
nergal is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-18-2012 , 20:27   Re: bi-directional teleport attribute
Reply With Quote #2

Quote:
Originally Posted by nergal View Post
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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-18-2012 at 20:28.
Powerlord is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 08-19-2012 , 15:18   Re: bi-directional teleport attribute
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
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 >=/
__________________

Last edited by nergal; 08-19-2012 at 21:23.
nergal is offline
Ralrus
Junior Member
Join Date: Jan 2012
Old 08-30-2012 , 21:39   Re: bi-directional teleport attribute
Reply With Quote #4

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
Ralrus is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-31-2012 , 09:12   Re: bi-directional teleport attribute
Reply With Quote #5

Quote:
Originally Posted by Ralrus View Post
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...
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 08-31-2012 , 22:52   Re: bi-directional teleport attribute
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
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
__________________
nergal is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 08-31-2012 , 23:21   Re: bi-directional teleport attribute
Reply With Quote #7

well then it's looking for CTFGameRulesProxy::m_bPlayingMannVsMachine, I guess. Or tf_gamemode_mvm 1.

Last edited by Leonardo; 08-31-2012 at 23:23.
Leonardo is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 09-01-2012 , 12:53   Re: bi-directional teleport attribute
Reply With Quote #8

Quote:
Originally Posted by Leonardo View Post
well then it's looking for CTFGameRulesProxy::m_bPlayingMannVsMachine, I guess. Or tf_gamemode_mvm 1.
will it interfere with Arena mode?
__________________
nergal is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 09-01-2012 , 13:04   Re: bi-directional teleport attribute
Reply With Quote #9

maybe.
Leonardo is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-02-2012 , 09:53   Re: bi-directional teleport attribute
Reply With Quote #10

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.
__________________

Last edited by pheadxdll; 09-02-2012 at 18:06.
pheadxdll is offline
Reply


Thread Tools
Display Modes

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 02:16.


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