Raised This Month: $ Target: $400
 0% 

[L4D] Survivor Upgrades


Post New Thread Reply   
 
Thread Tools Display Modes
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 07-27-2009 , 09:57   Re: [L4D] Survivor Upgrades
Reply With Quote #191

Quote:
Originally Posted by olj View Post
Thanx Whosat, i think its just what i need. I will check it when i get home from work. I dont like decisions which leave survivors with no initial upgrades or only laser. Customizability is a must-have for such plugins, cause it allows to keep ALL the functionality of plugin, while tuning it for current needs.
You're welcome. Tell me if it works

Yeah I know the customizability part. Every server operator wants different things. Takes one to know one ;)
__________________
Whosat is offline
GrossKopf
Senior Member
Join Date: Jun 2007
Old 07-27-2009 , 10:34   Re: [L4D] Survivor Upgrades
Reply With Quote #192

Whosat - When you say "Fixed Survivors who went Idle/AFK and came back not getting their upgrades again" are you saying that when someone comes back from idle/AFK, they get another upgrade?

Also, does yours disable the giving of upgrades when the map starts, like magnoT's version?

You guys should really do seperate threads for your variances IMHO.
GrossKopf is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 07-27-2009 , 10:58   Re: [L4D] Survivor Upgrades
Reply With Quote #193

Quote:
Originally Posted by GrossKopf View Post
Whosat - When you say "Fixed Survivors who went Idle/AFK and came back not getting their upgrades again" are you saying that when someone comes back from idle/AFK, they get another upgrade?

Also, does yours disable the giving of upgrades when the map starts, like magnoT's version?

You guys should really do seperate threads for your variances IMHO.
No uh that's quite imbalanced huh.

Sometimes when survivors go AFK, L4D will make them Idle, replacing them with a Bot. When that happens, in theory, by default, the L4D upgrades system will not pass on the upgrades of the afk-ed player to the new bot. And thus it does not pass the upgrades back to the afk-ed player when he comes back and takes over the bot.

Jerrith tried working around this but he didn't do it fully. It will set the info in the plugin that the replaced bot/player has the upgrades, but does not actually give the upgrade to them. I fixed that.


You can do that by setting surup_upgrades_at_spawn "0"
in survivor_upgrades_k.cfg
You can also set a specific upgrade to be given at spawn by setting the value of the respective surup_allow_* ConVar to 2.
For surup_allow_* ConVars, a value of 0 = off, 1 = enabled, 2 = enabled, given at spawn


I'll be glad to if we are allowed to. Are we allowed to? Considering the original author is MIA and his plugin has (many) outstanding issues.
__________________

Last edited by Whosat; 07-27-2009 at 11:00.
Whosat is offline
alicia
Member
Join Date: Jul 2009
Old 07-27-2009 , 11:43   Re: [L4D] Survivor Upgrades
Reply With Quote #194

Hi Whosat. I tried the plugin and when I set it to only receive 2 upgrades it gave all of them. I also tried default 3 and it did the same.

Code:
| This server is running KrX's Survivor Upgrades plugin
| Say:
| /laser to toggle your laser sight
| /upgrades to check out your upgrades
| /upghelp2 to see at what times you get upgrades
| /upghelp to see this info
[SurUp] Survivor Upgrades is On!
Louis would have gotten an upgrade but already has them all.
Zoey would have gotten an upgrade but already has them all.
Francis would have gotten an upgrade but already has them all.
tardtester got Kevlar Body Armor (Reduce Damage).
tardtester got Climbing Chalk (Self Ledge Save) [Single Use].
tardtester got Second Wind (Self Revive) [Single Use].
tardtester got Hot Meal (Health Bonus).
tardtester got Laser Sight (Bright Red Beam).
tardtester got Combat Sling (Reduced Recoil).
tardtester got Large Clip (Increase ammo clip capacity).
tardtester got Knife (Escape Hunter or Smoker restraint) [Single Use].
tardtester got Smelling Salts (Fast Revive of other players).
tardtester got Ointment (Increased Run Speed when injured).
tardtester got Reloader (Fast Reload).
tardtester got Raincoat (Ignore Boomer Vomit) [Single Use].
tardtester got Goggles (See through Boomer Vomit).
tardtester would have gotten an upgrade but already has them all.

Last edited by alicia; 07-27-2009 at 11:47.
alicia is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 07-27-2009 , 11:51   Re: [L4D] Survivor Upgrades
Reply With Quote #195

Quote:
Originally Posted by alicia View Post
Hi Whosat. I tried the plugin and when I set it to only receive 2 upgrades it gave all of them. I also tried default 3 and it did the same.

Code:
| This server is running KrX's Survivor Upgrades plugin
| Say:
| /laser to toggle your laser sight
| /upgrades to check out your upgrades
| /upghelp2 to see at what times you get upgrades
| /upghelp to see this info
[SurUp] Survivor Upgrades is On!
Louis would have gotten an upgrade but already has them all.
Zoey would have gotten an upgrade but already has them all.
Francis would have gotten an upgrade but already has them all.
tardtester got Kevlar Body Armor (Reduce Damage).
tardtester got Climbing Chalk (Self Ledge Save) [Single Use].
tardtester got Second Wind (Self Revive) [Single Use].
tardtester got Hot Meal (Health Bonus).
tardtester got Laser Sight (Bright Red Beam).
tardtester got Combat Sling (Reduced Recoil).
tardtester got Large Clip (Increase ammo clip capacity).
tardtester got Knife (Escape Hunter or Smoker restraint) [Single Use].
tardtester got Smelling Salts (Fast Revive of other players).
tardtester got Ointment (Increased Run Speed when injured).
tardtester got Reloader (Fast Reload).
tardtester got Raincoat (Ignore Boomer Vomit) [Single Use].
tardtester got Goggles (See through Boomer Vomit).
tardtester would have gotten an upgrade but already has them all.
Whatdo you mean you set it to receive only 2 upgrades?

surup_upgrades_at_spawn "2" ?

If so, I'm unable to reproduce the error. Could you please attach your survivor_upgrades_k.cfg file please?
And also mention what map you were on and how many players and bots there were. Thanks.
__________________
Whosat is offline
alicia
Member
Join Date: Jul 2009
Old 07-27-2009 , 12:02   Re: [L4D] Survivor Upgrades
Reply With Quote #196

Ah yes surup_upgrades_at_spawn "2".

It happened playing Coop map l4d_farm04_barn and Versus map l4d_hospital01_apartment.

Thanks for the quick reply.

Code:
// This file was auto-generated by SourceMod (v1.2.1)
// ConVars for plugin "survivor_upgrades_k.smx"


// Whether or not we give out the Climbing Chalk upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_climbing_chalk "1"

// Whether or not we give out the Combat Sling upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_combat_sling "1"

// Whether or not we give out the Goggles upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_goggles "1"

// Whether or not we give out the Hollow Point Ammo upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_hollow_point_ammo "0"

// Whether or not we give out the Hot Meal upgrade.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_hot_meal "1"

// Whether or not we give out the Incendiary Ammo upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_incendiary_ammo "0"

// Whether or not we give out the Kevlar Body Armor upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_kevlar_body_armor "1"

// Whether or not we give out the Knife upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_knife "1"

// Whether or not we give out the Large Clip upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_large_clip "1"

// Whether or not we give out the Laser Sight upgrade.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_laser_sight "2"

// Whether or not we give out the Ointment upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_ointment "1"

// Whether or not we give out the Raincoat upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_raincoat "1"

// Whether or not we give out the Reloader upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_reloader "1"

// Whether or not we give out the Second Wind upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_second_wind "1"

// Whether or not we give out the Smelling Salts upgrade.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "2.000000"
surup_allow_smelling_salts "1"

// Whether or not we _always_ give survivors the laser sight upgrade, Survivor Upgrades enabled or not
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_always_laser "1"

// Enable/Disable Survivor Upgrades in Coop
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_enablecoop "1"

// Enable/Disable Survivor Upgrades in Survival
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_enablesv "1"

// Enable/Disable Survivor Upgrades in Versus
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_enablevs "1"

// Reloader upgrade: How long should shotgun reloads take in seconds?
// -
// Default: "0.5"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_reloader_shotgun_speed "0.4"

// Reloader upgrade: How long should reloads take in seconds?
// -
// Default: "0.5"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_reloader_speed "0.4"

// Reset all upgrades and re-give initial upgrades on map change (Proceeding to next mission)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_reset_on_map_change "1"

// Reset all upgrades and re-give initial upgrades on failing a mission?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
surup_reset_on_mission_lost "1"

// How many random upgrades to give survivors when they spawn.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_spawn "2"

// How many random upgrades to give survivors when their team kills the tank.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_tank_kill_all "1"

// How many random upgrades to give survivors when they personally kill the tank.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_tank_kill_killer "1"

// How many random upgrades to give survivors when a tank spawns.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_tank_spawn "0"

// How many random upgrades to give survivors when their team kills the witch.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_witch_kill_all "1"

// How many random upgrades to give survivors when they personally kill the witch.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
surup_upgrades_at_witch_kill_killer "1"

// How much text output about upgrades players see (0 = none, 3 = max, default 2).
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "3.000000"
surup_verbosity "2"

// The version of Survivor Upgrades plugin. CVAR Help: 0=Off, 1=On, 2=Give at Start
// -
// Default: "1.4k1"
surup_version "1.4k1"
alicia is offline
take
Junior Member
Join Date: Jul 2009
Old 07-28-2009 , 02:38   Re: [L4D] Survivor Upgrades
Reply With Quote #197

How should I do though I want to change the message when the skill is acquired into Japanese?
take is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 07-28-2009 , 05:06   Re: [L4D] Survivor Upgrades
Reply With Quote #198

@alicia:
I've managed to reproduce the error. Its with the tank killing. But I don't have much time to do these stuffs on weekdays. I'll try to when I have the time, sorry.
EDIT: I've fixed this bug. See next post =)

@take: Sorry I didn't implement translations for the plugin. You will have to manually open the .sp file and edit your texts.
__________________

Last edited by Whosat; 07-28-2009 at 08:54.
Whosat is offline
Whosat
Senior Member
Join Date: Nov 2007
Location: Singapore
Old 07-28-2009 , 06:20   Re: [L4D] Survivor Upgrades
Reply With Quote #199

Survivor Upgrades_K - KrX's modified Survivor Upgrades v1.4k2b1

Code:
/* KrX's Modified version - Version History
* 
* Version k1
*         - Initial release. Changes from original version (Jerrith's v1.4):
*         - Incorporated from MagnoT's modified release:
*             - Fixed warning messages during mapchanges
*             - Witches no longer burn forever
*             - Added a Admin command to clean all client upgrades, 'cleanallupgrades'
*             - Removed laseron and laseroff - laser toggles that (say /laser)
*             - Only alive survivors can get upgrades
*         - Incorporated and modified from MagnoT's modified release:
*             - Fixed giving 1 extra upgrade at start of each round
*             - Added showing of Help 20 seonds after connection to server
*             - Added Help for clients: say /upghelp
*         - Added modifications by KrX:
*             - Fixed Help spamming Errors that client is not connected to server
*             - Added command /upghelp2 to see at what times clients get upgrades
*             - Fixed: /listupgrades now show even if Verbosity is 0
*             - Added alternate command for /listupgrades: /upgrades
*             - Added activation of Survivor Upgrades only on specific gamemodes, updates Help as well 
*                 (surup_enablecoop [1], surup_enablesv [1], surup_enablevs [0])
*                 Possible for Laser-only: disable upgrades on all gamemodes, then set  surup_always_laser to 1
*             - Enable/Disable carrying Upgrades over to next Mission 
*                 (surup_reset_on_map_change [0])
*             - Enable/Disable resetting of Upgrades when you lose any mission 
*                 (surup_reset_on_mission_lost [0])
*             - Set Reloader Upgrade multiplier of weapons 
*                 (surup_reloader_speed [0.5], surup_reloader_shotgun_speed [0.5])
*             - Fixed Flag for surup_upgrades_at_tank_spawn and added min/max values for ConVars
*             - Fixed Survivors who went Idle/AFK and came back not getting their upgrades again
* 
*/
Version k2 beta 1:
Code:
* Version k2
*         - Fixed bug where survivors will get all upgrades if surup_upgrades_at_tank_spawn "0" and the tank is killed
*         - Added primary attacker's name of the tank when broadcast to all if Verbosity > 2
Thanks alicia for reporting the bug. It was with the giving of upgrades to all when the tank dies and upgrades_at_tank_spawn is 0 (stupid variable name bug)

I will take some time to update the plugin as I have other commitments to attend to as well. Sorry!
Attached Files
File Type: sp Get Plugin or Get Source (survivor_upgrades_k.sp - 423 views - 47.6 KB)
__________________

Last edited by Whosat; 07-28-2009 at 06:23. Reason: Added full changelog
Whosat is offline
take
Junior Member
Join Date: Jul 2009
Old 07-28-2009 , 06:48   Re: [L4D] Survivor Upgrades
Reply With Quote #200

Thank you for a prompt answer.
Is the edited file SP file?
Moreover, where should be edited if it is SP file?My best regards.
take 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 20:02.


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