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

Drop flashbang for zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chips60
New Member
Join Date: Aug 2009
Old 08-22-2009 , 07:06   Drop flashbang for zombie
Reply With Quote #1

I changed the weapons file to "configs/zr/weapons.txt" to allow the flash:

Code:
"Flashbang"
{
    // General

    "weapontype"        "All, Projectile"
    "weaponslot"        "3"

    // Restrict (core)

    "restrictdefault"    "no"
    "toggleable"        "yes"

    // ZMarket (module)

    "zmarketprice"        "200"
    "zmarketpurchasemax"    "1"
}
The flashes are now allowed, but when a human is infected, it loose all weapons except the flash.

How do I change it, to loose ALL.

Thank you and sorry for my English ^^
Chips60 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-22-2009 , 07:20   Re: Drop flashbang for zombie
Reply With Quote #2

Apparently this is a side effect from another bug, where zombies sometimes carry grenades.

The weapon remover loops through every slot and remove a weapon from it. Since grenades has multiple slots, I think this is the problem. It only remove one weapon per slot.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-22-2009 , 07:36   Re: Drop flashbang for zombie
Reply With Quote #3

http://forums.alliedmods.net/showpos...6&postcount=11
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Chips60
New Member
Join Date: Aug 2009
Old 08-22-2009 , 07:54   Re: Drop flashbang for zombie
Reply With Quote #4

I have put all the code?

If yes, what file?

Thanks
Chips60 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-22-2009 , 08:01   Re: Drop flashbang for zombie
Reply With Quote #5

exvel: How nice, just what we need for inspiration.

Chips60: If you don't do coding yourself, forget about the source code. Let us handle that. ^^
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Chips60
New Member
Join Date: Aug 2009
Old 08-22-2009 , 08:18   Re: Drop flashbang for zombie
Reply With Quote #6

Ok, so you can do ^^

You post the file here when finished?

Thx rhelgeby and exvel
Chips60 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-22-2009 , 08:28   Re: Drop flashbang for zombie
Reply With Quote #7

The flashbang bug isn't fixed yet, we just got the report. And, no I won't post the fix here. It will be released in beta 2.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-22-2009 , 17:29   Re: Drop flashbang for zombie
Reply With Quote #8

Aha now that bug makes more sense. Should be fixed in beta 2.


Thanks exvel.
__________________
Greyscale 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 07:12.


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