AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Special Ammo Awards (https://forums.alliedmods.net/showthread.php?t=114210)

AtomicStryker 01-02-2010 17:43

[L4D2] Special Ammo Awards
 
7 Attachment(s)
As its predecessor for L4D this Plugin awards Players which kill a certain amount of Zombies with Special Ammo.


Ammotypes:

L4D2 Incendiary Ammo
L4D2 Explosive Ammo
DumDum Ammo (pushes Infected back on hit)



Unlike in L4D, since special ammo is now supported by the game itself, we have some changes:

Explosive and Incendiary Rounds are Gun Exclusive. DumDum Rounds are NOT.


If you have a shotgun weapon, the amount of Special Rounds you receive as per CVAR gets divided by 5.


CVARS:
  • l4d2_specialammo_killcountsetting (default 50) How many Zombies killed earns your special ammo
  • l4d2_specialammo_amount (default 100) How much Special Ammo you get
  • l4d2_specialammo_dumdumforce (default 150) How much force do DumDum Rounds apply to Infected

- Works in all Gamemodes -



Changelog:

1.0.0 - Release
1.0.1 - added l4d2 game check
1.0.2 - fixed not giving out upgrades
1.0.3 - fixed resetting special ammo to 0
1.0.4 - added Connection and RoundStart resets
1.0.5 - fixed chat spam on dumdum end

happystation 01-03-2010 07:23

Re: [L4D2] Special Ammo Awards
 
Nice!

Blu3star 01-03-2010 16:31

Re: [L4D2] Special Ammo Awards
 
After I've won all the ammo for the first time, (I set it at a low number
because I run a 10 slot), It just stops the counts. So you only get 1
of each ammo.

Downtown1 01-03-2010 16:44

Re: [L4D2] Special Ammo Awards
 
Add this

PHP Code:

public OnPluginStart()
{
    
// Require Left 4 Dead 2
    
decl String:game_name[64];
    
GetGameFolderName(game_namesizeof(game_name));
    if (!
StrEqual(game_name"left4dead2"false))
    {
        
SetFailState("Plugin supports Left 4 Dead 2 only.");
    }



AtomicStryker 01-03-2010 17:16

Re: [L4D2] Special Ammo Awards
 
Added.

Bongholio 01-05-2010 21:49

Re: [L4D2] Special Ammo Awards
 
didn't work at all

supposing it loaded

shut down

edited the generated .cfg

NADA

U can see the coop campaign and smod/meta running versions
at bottom of other posts of mine

EDIT

game reboot mighta fixed it
or restoring defaults in config
I saw some people getting upgrades a few times
I might have set the config too low?

There a 2 sets of
//default's
in my config (confusing)

PS anyone know how I can restore my txt to non underlined (doh!) PM me :lol:

RE EDIT

not working (not enough common I dunno?)

plugins


spawn minigun
smoke it
show damage
perkmod2
modelfun
l4dpainter
l4d_sm_respawn
l4d_cloud_damage
l4d2_infected_bots
l4d2_csm
l4d2_weaponspawner_04
l4d2_spawn uncommons
l4d2_sm_setmodel.smx
l4d2_lasersight.smx
l4d2_jockey_dismount.smx
l4d2_ghostchargerfix.smx
l4d2_bulldozercertificate.smx
jetpack.smx
all4dead2.smx

L4D2 coop/campaign
non-dedicated server
sourcemod-1.3.0-hg2865.zip
mmsource-1.8.0-hg688.zip
(wish I knew why everything is underlined and how to get rid of it!!!)

oms600 01-15-2010 08:47

Re: [L4D2] Special Ammo Awards
 
why it only giv special ammo one time only??

AtomicStryker 01-15-2010 10:46

Re: [L4D2] Special Ammo Awards
 
It was a bug, fixed now.

oms600 01-15-2010 22:48

Re: [L4D2] Special Ammo Awards
 
ok..it giving upgrades now...but it doesnt really giving the special ammo..o.0

i set the special ammo amount at 200

but it only giv 50...thn after a sec it change to 0...

is this a bug?

Acecombat2 01-16-2010 09:38

Re: [L4D2] Special Ammo Awards
 
i got the same problem as oms600.


All times are GMT -4. The time now is 04:59.

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