Skino1337 / Mid-Wars

Javascript plugin for dota 2
http://d2ware.net/plugin?MidWars
0 stars 0 forks source link

No buyback + teleporters to 2nd tier towers? #1

Open ash47 opened 11 years ago

ash47 commented 11 years ago

With no buyback, there is a cooldown:

If you look for any addon which has a playerManager, you can probably set

playerManager.netprops.m_flBuybackCooldownTime[playerID] = 360000;

You may also have to set m_iLastBuybackTime

(I didn't test this)

As far as teleporting out to t2 tower, you could either add -teleport (or a similar command)

Or, when a player spawns, give them a tp scroll, and set item.netprops.m_fCooldown = 0;

Or, something along those lines :package:

Skino1337 commented 11 years ago

m_iLastBuybackTime m_flBuybackCooldownTime i already try to set this varible, but all vainly