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

[Help] Gravity of snowflakes


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-20-2016 , 09:09   Re: [Help] Gravity of snowflakes
Reply With Quote #11

Now try to throw a grenade.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-20-2016 , 09:15   Re: [Help] Gravity of snowflakes
Reply With Quote #12

Quote:
Originally Posted by OciXCrom View Post
Now try to throw a grenade.
It is not so bad, so if this is the only solution ...
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 12-20-2016 , 09:20   Re: [Help] Gravity of snowflakes
Reply With Quote #13

Quote:
Originally Posted by Craxor View Post
ok, try this one:
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

new const PlayerClass[ ] = "player";

public 
plugin_init( )
{
    
RegisterHamHam_Spawn PlayerClass"hook_spawn");    
}

public 
hook_spawnent )
{
    
SetGravityent 800 );
    
}

public 
client_putinserverent SetGravityent 800 );


SetGravityid iGravity )
{
    static 
GravityPointer;
    
GravityPointer get_cvar_pointer"sv_gravity" );

    if( 
is_user_aliveid ) && iGravity 
    {
        
set_user_gravityidfloatiGravity ) / floatget_pcvar_numGravityPointer ) ) );
    }

}

public 
plugin_cfg( )
{
    
set_cvar_num"sv_gravity"55 );

Don't work... It also affects players
__________________
The Professional is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-20-2016 , 09:24   Re: [Help] Gravity of snowflakes
Reply With Quote #14

It is working perfectly.

Install your Snow plugin and also install this one.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-20-2016 , 10:00   Re: [Help] Gravity of snowflakes
Reply With Quote #16

snow falling down very slowly ( that's what you wish no ? )
and players have normal gravity.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-20-2016 , 11:55   Re: [Help] Gravity of snowflakes
Reply With Quote #18

I tested and it works, because i never post untested code.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-21-2016 , 15:31   Re: [Help] Gravity of snowflakes
Reply With Quote #20

I have NO IDEA.

I believe your zp mod give to users gravity by directly using set_user_gravity , wich means you have 3 options:

1) Do not use zp mod ( and i believe that's excluded )
2) Maybe you can manage in way with cvars wich changes users gravity.
3) Open ZP source and use my stock SetGravity() to change users gravity in that way.

4) Or (but i do not know if will work, i can make a delay with my plugin to give the gravity some seconds later, but i'm not sure will work. )

So , good luck
__________________
Project: Among Us

Last edited by Craxor; 12-21-2016 at 15:31.
Craxor is offline
Send a message via ICQ to Craxor
Reply



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


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