Raised This Month: $7 Target: $400
 1% 

VIP Objective Balance


Post New Thread Reply   
 
Thread Tools Display Modes
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 09-12-2011 , 05:35   Re: VIP Objective Balance
Reply With Quote #11

Quote:
Originally Posted by Arkshine View Post
Your test was wrong so.

PHP Code:
static cell AMX_NATIVE_CALL is_user_connected(AMX *amxcell *params/* 1 param */
{
    
int index params[1];
    
    if (
index || index gpGlobals->maxClients)
        return 
0;
    
    
CPlayerpPlayer GET_PLAYER_POINTER_I(index);
    
    return (
pPlayer->ingame 0);

PHP Code:
static cell AMX_NATIVE_CALL is_user_alive(AMX *amxcell *params/* 1 param */
{
    
int index params[1];
    
    if (
index || index gpGlobals->maxClients)
    {
        return 
0;
    }
    
    
CPlayerpPlayer GET_PLAYER_POINTER_I(index);

    if (
g_bmod_tfc)
    {
        
edict_t *pPlayer->pEdict;
        if (
e->v.flags FL_SPECTATOR || 
            (!
e->v.team || !e->v.playerclass))
        {
            return 
0;
        }
    }
    
    return ((
pPlayer->ingame && pPlayer->IsAlive()) ? 0);

pPlayer->ingame is used in both, thus is_user_alive is enough.
Roger that, sir.


Updated to 1.1
Changed: Improved performance by removing "is_user_connected()".
Changed: Improved performance by modifying "is_user_alive()" check.
Changed: Removed message of money restored - instead given money flashes on the HUD.

Personal log: 34 downloads reset.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-10-2012 , 06:20   Re: VIP Objective Balance
Reply With Quote #12

Instead of giving money for the items you can just store them and give them back to the player for two reasons:
- player might already have high amounts of money and giving him more money would reach the limit and he'll loose some money in the process
- player has enemy weapons like AK47, G3SG1, etc.

You should also add something optional to allow CTs to vote who'll be the VIP next... with some options like voting only if VIP gets killed, or vote every X rounds, etc.
__________________
Hunter-Digital is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 01-10-2012 , 06:27   Re: VIP Objective Balance
Reply With Quote #13

Good ideas to make VIP Mode better. But this plugin could use some more cvars for configuring the weapons you get or if you want to disable certain features.
__________________
In Flames we trust!
Nextra is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-10-2012 , 08:34   Re: VIP Objective Balance
Reply With Quote #14

Quote:
Originally Posted by Hunter-Digital View Post
Instead of giving money for the items you can just store them and give them back to the player for two reasons:
- player might already have high amounts of money and giving him more money would reach the limit and he'll loose some money in the process
- player has enemy weapons like AK47, G3SG1, etc.

You should also add something optional to allow CTs to vote who'll be the VIP next... with some options like voting only if VIP gets killed, or vote every X rounds, etc.
I did thought of that, but after giving it some more thoughts, I think this is the best way. Lets say all CTs got killed, but vip escaped. Now terrorists don't expect ak47, but surprise!!! Also in case scenario if plugin gets paused it can really mess up things. Plus if player already has 16000k - what about it. Counter-Strike economy isn't working on recovering weapons - it works on money, and that's what I'm working on as well.

Quote:
Originally Posted by Nextra View Post
Good ideas to make VIP Mode better. But this plugin could use some more cvars for configuring the weapons you get or if you want to disable certain features.
I don't think so - after my tests, I found this method most balance improving. I don't care if vips should have awps or m249 with supper powerful bullets - this is what I found the most balancing thing. Plus introducing now as often used weapons into the mod. p228 is usp, but with a bit less power, but more accuracy and more bullets. TMP isn't accurate, but is really useful for close range battle, and is the most silent weapon in the game. Now VIPs can play by themselves, but may also rely on others - their choice. But if they play without backup, than they have a higher chance to win and stay alive. But still they must try to be sneaky. Sure, they can kill opponents one way or an other - it's now easier for them, but they still have to think should they kill an enemy or stay sneaky and undetected.

Only thing I'm not sure, is that I think I should give fair amount of flashes/smoke grenades to vips.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 01-10-2012 at 08:39.
MPNumB is offline
Send a message via Skype™ to MPNumB
bibu
Veteran Member
Join Date: Sep 2010
Old 01-10-2012 , 11:30   Re: VIP Objective Balance
Reply With Quote #15

Also, use give_item from the fun module. It's faster.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-10-2012 , 15:36   Re: VIP Objective Balance
Reply With Quote #16

Quote:
Originally Posted by bibu View Post
Also, use give_item from the fun module. It's faster.
I think I already said that fm_give_item and give_item doesn't work for VIPs.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
bibu
Veteran Member
Join Date: Sep 2010
Old 01-10-2012 , 17:25   Re: VIP Objective Balance
Reply With Quote #17

Ooops, forgot that.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 01-11-2012 , 06:55   Re: VIP Objective Balance
Reply With Quote #18

Quote:
Originally Posted by MPNumB View Post
I don't think so - after my tests, I found this method most balance improving.
I don't know why I expected this answer

I'm aware that you carefully test your plugins and that you think of cvars as unnecessary most of the time. But you have to realize that some people may not like just *that* part of your plugin or, in this case, want to give a desert eagle instead of a P228 or giving a slightly stronger weapon instead of a TMP.
If you decide to put in grenades - maybe someone doesn't want the VIP to get a flashbang for some reason. Think of servers that mod weapons to have different features or use a grenade mod; that you can by no means predict and test.
And even if someone decides to make their VIP a rampant killing machine - let them. It's their decision and they will thank you for this plugin nonetheless.

You see: The majority these things are easily changed anyway. You're just making it inconvenient for inexperienced (coding-wise) server administrators out there, and quite frankly even for those who can edit those things quickly.
If you think that you have tuned it perfectly for standard servers, and I will believe you, you can state so explicitly when describing the cvars. Not giving the people their options however, is an unnecessary restriction you're imposing on yourself and this plugin.
__________________
In Flames we trust!
Nextra is offline
Old 01-17-2012, 04:13
reko_o
This message has been deleted by xPaw. Reason: Flooding "thanks" posts
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 05-16-2012 , 04:51   Re: VIP Objective Balance
Reply With Quote #19

Updated to 1.2
Added: VIPs now get flashbangs and smoke-grenades (depends on startmoney and round #).
Fixed: Now bullets within the clip are counted for weapon refund as well.

(158 downloads reset)

---

So approve anytime soon?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 05-16-2012 at 04:56.
MPNumB is offline
Send a message via Skype™ to MPNumB
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-18-2012 , 08:09   Re: VIP Objective Balance
Reply With Quote #20

Code:
new iEnt;         while( (iEnt=engfunc(EngFunc_FindEntityByString, iEnt, "classname", "weapon_usp"))>0 )         {             if( pev_valid(iEnt) )             {                 if( pev(iEnt, pev_owner)==iPlrId && get_pdata_cbase(iEnt, m_pPlayer, 4)==iPlrId )                     break;             }         }


That, it would be more appropriate to look directly in the player's secondary slot.

Why are you clamping money to 16000 ? There are plugins which remove the limit, I can't find really a valid reason to do that.
__________________
Arkshine 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 22:43.


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