Raised This Month: $12 Target: $400
 3% 

Round End (gravity / speed)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 04-22-2020 , 11:23   Round End (gravity / speed)
Reply With Quote #1

Hi, can someone make a simple plugin that will that gravity to low on round end?
and an option to choose between gravity and speed? thank you
__________________
PEACE FROM MOLDOVA
eliteroyal is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 04-22-2020 , 12:06   Re: Round End (gravity / speed)
Reply With Quote #2

Add me on discord : Pilo#8253
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-24-2020 , 17:34   Re: Round End (gravity / speed)
Reply With Quote #3

Quote:
Hi, can someone make a simple plugin that will that gravity to low on round end?
and an option to choose between gravity and speed? thank you
can someone share this plugin?

Last edited by XHUNTERX; 04-24-2020 at 17:34.
XHUNTERX is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 04-25-2020 , 09:44   Re: Round End (gravity / speed)
Reply With Quote #4

Quote:
Originally Posted by XHUNTERX View Post
can someone share this plugin?
You can message me on discord
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-30-2020 , 04:52   Re: Round End (gravity / speed)
Reply With Quote #5

you better share it here

not everyone should pay for it
XHUNTERX is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-30-2020 , 05:52   Re: Round End (gravity / speed)
Reply With Quote #6

I don't fully understand 1st post.
Can someone give more detail, how this should work.

Do it need work after round end, and stop round start ?
__________________
Do not Private Message @me
Bacardi is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 04-30-2020 , 05:58   Re: Round End (gravity / speed)
Reply With Quote #7

Quote:
Originally Posted by XHUNTERX View Post
you better share it here

not everyone should pay for it
I didn't say he would pay for it..
Just a simple plugin.
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-30-2020 , 06:51   Re: Round End (gravity / speed)
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
I don't fully understand 1st post.
Can someone give more detail, how this should work.

Do it need work after round end, and stop round start ?

When the round time expires, all surviving players are given low gravity

thanks Bacardi
XHUNTERX is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-30-2020 , 06:53   Re: Round End (gravity / speed)
Reply With Quote #9

Quote:
Originally Posted by Pilo View Post
I didn't say he would pay for it..
Just a simple plugin.
if you do not want to receive payment you can share it here
this is a sharing forum
XHUNTERX is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-30-2020 , 10:54   Re: Round End (gravity / speed)
Reply With Quote #10

This plugin quick save current sv_gravity value, then change sv_gravity to 200, at round_end.
When round_start, plugin set back previous value.


PHP Code:
public void OnPluginStart()
{
    
HookEventEx("round_end"round);
    
HookEventEx("round_start"round);
}

public 
void round(Event event, const char[] namebool dontBroadcast)
{
    static 
ConVar sv_gravity;
    static 
int default_gravity = -123;
    
    if(
sv_gravity == null)
    {
        
sv_gravity FindConVar("sv_gravity");

        if(
sv_gravity == nullSetFailState("Game not have cvar 'sv_gravity'");
    }

    if(
StrEqual(name"round_start"false))
    {
        if(
default_gravity != -123)
        {
            
sv_gravity.SetInt(default_gravitytrue);
            
default_gravity = -123;
        }
        return;
    }


    
default_gravity sv_gravity.IntValue;
    
sv_gravity.SetInt(200true); // change this. 800 is default sv_gravity


__________________
Do not Private Message @me
Bacardi 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 12:27.


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