AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] Personal Gravity (https://forums.alliedmods.net/showthread.php?t=111875)

A.B. 12-14-2009 22:15

[Request] Personal Gravity
 
Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific flag?
Let's use ADMIN_IMMUNITY as an example.

Toastt 12-14-2009 22:19

Re: [Request] Personal Gravity
 
Quote:

Originally Posted by A.B. (Post 1017383)
Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific player using admin_access?

i was gonna post for a plugin like so, very nice idea

Bugsy 12-14-2009 22:26

Re: [Request] Personal Gravity
 
Quote:

Originally Posted by A.B. (Post 1017383)
Yes I know, it's been made before, by Chronic.
Yet it's still on manual -- amx_gravity <target> <gravoty amount>

Is there a way to assign custom gravity levels for a specific player using admin_access?

Set a users gravity based on the flags they have? Yes this is simple.

A.B. 12-14-2009 22:33

Re: [Request] Personal Gravity
 
#3
That would be lovely.

Bugsy 12-14-2009 22:37

Re: [Request] Personal Gravity
 
Quote:

Originally Posted by A.B. (Post 1017394)
#3
That would be lovely.

ok what gravity do you want each level to have?

#define ADMIN_ALL 0 /* everyone */
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK (1<<2) /* flag "c" */
#define ADMIN_BAN (1<<3) /* flag "d" */
#define ADMIN_SLAY (1<<4) /* flag "e" */
#define ADMIN_MAP (1<<5) /* flag "f" */
#define ADMIN_CVAR (1<<6) /* flag "g" */
#define ADMIN_CFG (1<<7) /* flag "h" */
#define ADMIN_CHAT (1<<8) /* flag "i" */
#define ADMIN_VOTE (1<<9) /* flag "j" */
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
#define ADMIN_RCON (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G (1<<18) /* flag "s" */
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */

A.B. 12-14-2009 22:42

Re: [Request] Personal Gravity
 
We could easilly edit the levels. Yet, since you're that nice let's go with admin_immunity, just make a single cvar, adjust it later.

ex:
#define admin_access admin_immunity

if_user_access blah blah I have no idea what I'm doing then >
sv_gravity 100

Bugsy 12-14-2009 23:02

Re: [Request] Personal Gravity
 
Quote:

Originally Posted by A.B. (Post 1017402)
We could easilly edit the levels. Yet, since you're that nice let's go with admin_immunity, just make a single cvar, adjust it later.

ex:
#define admin_access admin_immunity

if_user_access blah blah I have no idea what I'm doing then >
sv_gravity 100

How do you want to handle admins w\ multiple flags. Easiest way is in order as defined above.

So if you have immunity, you get flags based off immunity, or if you dont have immunity but have reservation flags then you get reservation gravity and so on.

A.B. 12-14-2009 23:20

Re: [Request] Personal Gravity
 
#7
Why not ignore admins with multiple flags?

Set a specific amount of gravity to players with flag "X" and simply avoid other flags forcing the gravity to a specific flag only.
We could easilly adjust the gravity for our desired level after you release .sma

Am I missing something?

Bugsy 12-15-2009 00:23

Re: [Request] Personal Gravity
 
Quote:

Originally Posted by A.B. (Post 1017420)
#7
Why not ignore admins with multiple flags?

Set a specific amount of gravity to players with flag "X" and simply avoid other flags forcing the gravity to a specific flag only.
We could easilly adjust the gravity for our desired level after you release .sma

Am I missing something?

Ok, so we are only allowing this plugin to affect players with one level of admin powers and ignore all others?

A.B. 12-15-2009 00:30

Re: [Request] Personal Gravity
 
Yep, that's what I personally need.

On other hand you should make it your way. Making the code much more userful to a public. ;)


All times are GMT -4. The time now is 18:22.

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