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

[REQ]Set max kills


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Udi
Junior Member
Join Date: Aug 2009
Old 03-29-2010 , 08:16   [REQ]Set max kills
Reply With Quote #1

Hello, I downloaded the GunGame mod version 2.12 and when the team play is on, its set the max kills of each team with this calculation:
PlayersOfTheTeam * 2 .
I would like you to make it permanent of 6 kills per gun.
thank you very much!
Udi is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 03-29-2010 , 15:37   Re: [REQ]Set max kills
Reply With Quote #2

Don't write all in bold


Can't you change it in CVars?
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 03-29-2010 , 16:32   Re: [REQ]Set max kills
Reply With Quote #3

This would be unfair for the team with less players. That's why it is allways playersofteam * killsperlevel
__________________

Mordekay is online now
Udi
Junior Member
Join Date: Aug 2009
Old 03-29-2010 , 17:30   Re: [REQ]Set max kills
Reply With Quote #4

Quote:
Originally Posted by kanatzu View Post
Don't write all in bold


Can't you change it in CVars?
i think this is built in the plug..
so.. can you write it here?

and if you mean to this: gg_kills_per_lvl tell me if it works for teamplay mode.
i checked it and it dosent work.. he still calculate it as ppls-at-team * 2

Last edited by Udi; 03-29-2010 at 17:55.
Udi is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-29-2010 , 18:06   Re: [REQ]Set max kills
Reply With Quote #5

Udi: Like Mordekay said, the calculation should be players_on_team * gg_killsperlvl, with exceptions for the grenade and knife. Also gg_killsperlvl can be replaced by custom kill requirements (like doing "ak47" in your gg_weapon_order).

If you want it to be 6 kills for every level no matter what, try something like this (attached). Change
Code:
// gets the goal for a level, taking into account default and custom values stock get_level_goal(level,id=0) {     if(level < 1) return 1;     // no teamplay, return preset goal     if(!is_user_connected(id) || !get_pcvar_num(gg_teamplay))     {         if(is_user_bot(id)) return floatround(weaponGoal[level-1]*get_pcvar_float(gg_kills_botmod),floatround_ceil);         return floatround(weaponGoal[level-1],floatround_ceil);     }     // one of this for every player on team     new Float:result = weaponGoal[level-1] * float(team_player_count(cs_get_user_team(id)));         // modifiers for nade and knife levels     if(equal(weaponName[level-1],"hegrenade")) result *= get_pcvar_float(gg_teamplay_nade_mod);     else if(equal(weaponName[level-1],"knife")) result *= get_pcvar_float(gg_teamplay_melee_mod);         if(result <= 0.0) result = 1.0;     return floatround(result,floatround_ceil); }
to
Code:
// gets the goal for a level, taking into account default and custom values stock get_level_goal(level,id=0) {     if(level < 1) return 1;     // no teamplay, return preset goal     if(!is_user_connected(id) || !get_pcvar_num(gg_teamplay))     {         if(is_user_bot(id)) return floatround(weaponGoal[level-1]*get_pcvar_float(gg_kills_botmod),floatround_ceil);         return floatround(weaponGoal[level-1],floatround_ceil);     }     return 6; // for teamplay, no matter what }

Cheers,

Ava
Attached Files
File Type: sma Get Plugin or Get Source (gungame.sma - 565 views - 211.0 KB)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Udi
Junior Member
Join Date: Aug 2009
Old 03-29-2010 , 20:14   Re: [REQ]Set max kills
Reply With Quote #6

Thank you, but now the knife and grenade will be 6 too?
Udi is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-31-2010 , 18:25   Re: [REQ]Set max kills
Reply With Quote #7

Udi: With that code, yes. What way would you prefer it? I can probably write it that way.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
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 12:01.


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