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

[Suggestion] Fire-nades and water


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-10-2009 , 05:50   [Suggestion] Fire-nades and water
Reply With Quote #1

I've just played on your 3.0 beta server and it is awsome. Thank you for making this good mod.

Anyway when I was playing this mod I've got an idea. Basically I want zombies to have a way to extinguish their fire by jumping into a water. Or if there is only a puddle zombie will not be extinguished quick but his burning time will be decreased. I don't know if the second one is possible. But for the first one I think you can use something like this OnGameFrame (or better on player_hurt):
PHP Code:
if (GetEntityFlags(client_zombie) & FL_INWATER)
{
          
// extinguish zombie

For pairs I think will be enough TE_SetupSmoke on the player with any white sprite.
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 07-10-2009 at 09:08.
exvel is offline
Send a message via ICQ to exvel
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-10-2009 , 11:38   Re: [Suggestion] Fire-nades and water
Reply With Quote #2

I've also had this idea before

Shouldn't be too hard to add, maybe it'll make it into the first beta release.
__________________
Greyscale is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-10-2009 , 11:40   Re: [Suggestion] Fire-nades and water
Reply With Quote #3

Great!
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Grey Echo
Senior Member
Join Date: Nov 2008
Location: United States
Old 07-12-2009 , 17:44   Re: [Suggestion] Fire-nades and water
Reply With Quote #4

As a coder, I know that you could use GetWaterLevel() == 3 as well to determine whether or not the player is fully underwater. I don't know exactly what it returns off the top of my head, but that shouldn't be too hard to figure out.
Grey Echo is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-13-2009 , 00:53   Re: [Suggestion] Fire-nades and water
Reply With Quote #5

Do we need some offsets for that one? Because it's not in the SM API.
__________________
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
Grey Echo
Senior Member
Join Date: Nov 2008
Location: United States
Old 07-13-2009 , 13:25   Re: [Suggestion] Fire-nades and water
Reply With Quote #6

Yeah, you'll need the following offset: m_nWaterLevel (CBaseEntity or C_BaseEntity, I don't remember which, so try both) ... when that is 3, the player is fully underwater.
Grey Echo is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-15-2009 , 19:57   Re: [Suggestion] Fire-nades and water
Reply With Quote #7

Awesome, hopefully this works a little better than the flags. When I tested the flags weren't workin' for me at all.


EDIT: It's in the CBasePlayer class.
__________________

Last edited by Greyscale; 07-16-2009 at 20:22.
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 12:46.


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