Raised This Month: $45 Target: $400
 11% 

[L4d2] tank homing rock help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rekcah
Member
Join Date: Jun 2019
Old 10-15-2021 , 07:25   [L4d2] tank homing rock help
Reply With Quote #1

id like to make a plugin that steers rocks towards whichever survivor the tank is looking at when it throws the rock.

I'm stuck on step 1, when the rock is created, how can i figure out who is throwing it?

can anyone help?
rekcah is offline
Psyk0tik
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Old 10-15-2021 , 08:12   Re: [L4d2] tank homing rock help
Reply With Quote #2

PHP Code:
int iThrower GetEntPropEnt(rockProp_Data"m_hThrower");
if (
/* Validate the value of "iThrower" here */)
{
    
// your code here

__________________
AFK like JFK
--
Donate to Motivate
--
Get latest L4D/L4D2 gamedata signatures here.
--
PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
Psyk0tik is offline
Reply


Thread Tools
Display Modes

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 14:07.


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