Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Perks] How to change perk properties?

Featured Replies

Опубликовано:

I want to edit some perks' properties and values. I couldnt found it for marathon and marathon pro. I want convert it to 'extreme conditioning' and 'extreme conditioning pro'... So i want change unlimited sprint to 2x-3x longer sprint.

 

But i found lightweight's values in maps/mp/perks/_perkfunctions.gsc

 

setLightWeight()
{
self.moveSpeedScaler = 1.07;	 //<<---
self maps\mp\gametypes\_weapons::updateMoveSpeedScale( "primary" );
}

There is no function about marathon. Also in _perks.gsc

Опубликовано:
So how to stop player after sprinting 2x or 3x longer

 

The marathon perks functionality itsself seems to be hard-coded.

 

Anyway, i have an idea how it might be possible:

 

Monitor the sprintdistance and check if the player has the marathon perk.

if ( self _hasperk( "specialty_marathon" ) )

If the sprintdistance exceeds a certain limit set:

self allowSprint(false);

 

After some seconds re-allow sprinting:

self allowSprint(true);

 

Not sure, if that would work fine but you might want to give it a try...

 

If you don't know how to monitor the sprint distance, take a look at _missions.gsc

and search for the monitorSprintDistance() function.

Опубликовано:
  • Автор
So how to stop player after sprinting 2x or 3x longer

 

The marathon perks functionality itsself seems to be hard-coded.

 

Anyway, i have an idea how it might be possible:

 

Monitor the sprintdistance and check if the player has the marathon perk.

if ( self _hasperk( "specialty_marathon" ) )

If the sprintdistance exceeds a certain limit set:

self allowSprint(false);

 

After some seconds re-allow sprinting:

self allowSprint(true);

 

Not sure, if that would work fine but you might want to give it a try...

 

If you don't know how to monitor the sprint distance, take a look at _missions.gsc

and search for the monitorSprintDistance() function.

 

Thanks, thats good function i will use...

Опубликовано:
  • Автор

self allowSprint(false);

That didnt stopped sprinting. Its just not allowing player to sprint after finishing current sprint.

 

also I tried self notify ("sprint_end"); but still no luck.

 

 

for(;;)

{

self waittill ( "sprint_begin" );

startTime = getTime();

wait int(getDvarInt("player_sprintTime") * 2.5);

sprintTime = int( getTime() - startTime );

if( sprintTime > 45000 && self _hasperk("specialty_marathon") )

{

self notify ( "sprint_end" );

}

}

wrote that and not working too

 

edit:

completely disabled running if player has marathon :twisted: :lol:

if(self _hasperk("specialty_marathon")) { self allowSprint(false); }

Опубликовано:
self allowSprint(false);

That didnt stopped sprinting. Its just not allowing player to sprint after finishing current sprint.

 

also I tried self notify ("sprint_end"); but still no luck.

 

 

for(;;)

{

self waittill ( "sprint_begin" );

startTime = getTime();

wait int(getDvarInt("player_sprintTime") * 2.5);

sprintTime = int( getTime() - startTime );

if( sprintTime > 45000 && self _hasperk("specialty_marathon") )

{

self notify ( "sprint_end" );

}

}

wrote that and not working too

 

edit:

completely disabled running if player has marathon :twisted: :lol:

if(self _hasperk("specialty_marathon")) { self allowSprint(false); }

 

Is sprint_begin even defined or is it just some imaginary function you think exists?

Опубликовано:

Is sprint_begin even defined or is it just some imaginary function you think exists?

 

Yes, it is used in the function i pointed him to. (in _missions.gsc)

(As self waittill("sprint_begin");)

 

Anyway, you obviously can't use self notify("sprint_end"); to force the players sprint to end. ;)

(same for self notify("sprint_begin"); obv.)

Опубликовано:
  • Автор

Is sprint_begin even defined or is it just some imaginary function you think exists?

 

Yes, it is used in the function i pointed him to. (in _missions.gsc)

(As self waittill("sprint_begin");)

 

Anyway, you obviously can't use self notify("sprint_end"); to force the players sprint to end. ;)

(same for self notify("sprint_begin"); obv.)

 

This is what i need... How to stop sprinting?.. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.