• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] Push on players

enriel

Big L
Joined
Dec 14, 2007
Messages
1,254
Reaction score
2
Location
Montenegro
Is there a way to make the delay on players abit lower? So If I push a player it might take now 2s, I want to reduce it to 1s, is it possible?
 
Okey, thanks slawkens...
And... how can I change the Pushing Delay in an Avesta or TFS 0.2?
TFS 0.2.5 (I think avesta too).
Find in game.cpp:
PHP:
if(Creature* movingCreature = thing->getCreature())
~4 lines below is:
SchedulerTask* task = createSchedulerTask(2000,
change 2000 (2 seconds) to your time and compile or... (add it as option in config.lua, TFS 0.3 code)
-------------------------------------------------------
in place of 2000 paste:
PHP:
g_config.getNumber(ConfigManager::PUSH_CREATURE_DELAY)
in configmanager.cpp above:
PHP:
m_isLoaded = true;
paste (TFS 0.2.5 and maybe avesta too):
PHP:
m_confInteger[PUSH_CREATURE_DELAY] = getGlobalNumber("pushCreatureDelay", 2 * 1000);
(if it show error when compile avesta try: )
PHP:
m_confNumber[PUSH_CREATURE_DELAY] = getGlobalNumber("pushCreatureDelay", 2 * 1000);
in configmanager.h above:
PHP:
LAST_INTEGER_CONFIG
(if it doesnt exist in avesta search for: )
PHP:
LAST_NUMBER_CONFIG
paste:
PHP:
PUSH_CREATURE_DELAY,
and of course in config.lua:
PHP:
pushCreatureDelay = 2 * 1000
 
Thank you so much gesior! It works perfect! =)

I just changed this:
PHP:
m_confInteger[PUSH_CREATURE_DELAY] = getGlobalNumber("pushCreatureDelay", 2 * 1000);

To this:
PHP:
m_confInteger[PUSH_CREATURE_DELAY] = getGlobalNumber(L, "pushCreatureDelay", 2 * 1000);

I'm using Avesta.


I add you rep :)


PD: Gesior, could you read this? ---> http://otland.net/f16/help-gesiors-aac-avesta-49904/#post501019
 
Back
Top