AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   bullet/grenade tracking (https://forums.alliedmods.net/showthread.php?t=133115)

xgam3r1 07-22-2010 01:24

bullet/grenade tracking
 
I was wondering if there was any way to track a single bullet, for example to check if 1 bullet hit multiple people. The same with a grenade, to see if a grenade damaged or killed multiple people. I've been searching and i couldn't find anything about this so thanks for your help.

Peoples Army 07-22-2010 03:37

Re: bullet/grenade tracking
 
Well bullets are harder because there not actually entities , so the only way to determine there path is by using the trace hull functions

Grenades are a little easier because they actually have a model so you can track there weapon entity and model , but that will only tell you where the nade lands , not who it as damaged by , so you'll need to use something else

RedRobster 07-22-2010 03:42

Re: bullet/grenade tracking
 
Well, if you know where the grenade lands, you can check the radius = to the explode radius, and see who is inside of it.

Peoples Army 07-22-2010 03:55

Re: bullet/grenade tracking
 
only problem is he'd have to figure out whether or not there were any objects or walls or anything that might block the path of shrapnel to the victims

RedRobster 07-22-2010 04:03

Re: bullet/grenade tracking
 
True, but you would still take a little damage wouldn't you?

Peoples Army 07-22-2010 04:15

Re: bullet/grenade tracking
 
Well it gets more complicated because it would all depend on what type of object was in front of the shrapnel , if it was a thin sheet of metal like what ducts are made of , then it would go through , but say something like solid concrete wall and there is no way it will go through.

RedRobster 07-22-2010 04:29

Re: bullet/grenade tracking
 
You have to remember this is CS 1.6 xD

Peoples Army 07-22-2010 04:33

Re: bullet/grenade tracking
 
Those are the same in cz and in source

xgam3r1 07-22-2010 10:06

Re: bullet/grenade tracking
 
hmm i'm thinking of trying to check if someone killed multiple people with the same weapon before the delay of another possible shot or grenade being deployed by that same player. do you guys think that will work? I know people will be able to overcome it with speedhacks... but it doesn't seem like i have any other choice.

joropito 07-22-2010 11:29

Re: bullet/grenade tracking
 
Hook primary attack pre and post

If primary attack pre is called hook temporary traceline
Each call of traceline should be a hit
At primary attack post remove hook for traceline


All times are GMT -4. The time now is 00:17.

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