Raised This Month: $ Target: $400
 0% 

Creating Mines..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-30-2005 , 00:11   Creating Mines..
Reply With Quote #1

Hey guys, I know i've been posting like a nub tonight , but i've been trying a bunch of new things, and there is still a lot I don't know

My latest is trying to make a landmine. I made an entity, did a bunch of code to check radius and whatnot, then got to the detonate mine procedure:

Code:
public DetonateMine(ident[],TaskID) {     if(PlayerMinePlanted[id]) //avoid multiple explosions of the same mine     {         new id = str_to_num(ident)         PlayerMinePlanted[id] = 0         new Float:MineLocation[3]         MineLocation[0] = PlayerMineOrigin[Mine][0]         MineLocation[1] = PlayerMineOrigin[Mine][1]         MineLocation[2] = PlayerMineOrigin[Mine][2]                 RadiusDamage(MineLocation, PlayerLevel[id], PlayerLevel[id])     } }

Seems simple enough, but is there a way to check if anyone in that radius was killed so that I can give the killer appropriate experience and frag count?
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
 



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 16:39.


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