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

Solved Victim death event | Proper model size


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-19-2018 , 17:38   Victim death event | Proper model size
Reply With Quote #1

Hi,

Is victim killed yet in Ham_Killed pre? I need to check the last man standing, so I need to use Ham_Killed (pre) and get_players to see if there's 2 mans standing and then use a while() loop until the victim is dead, so I can choose the last man standing.

I have a model that I'm unable to set a perfect size, the upside and downside size are good but the sides are fucked up, like literally. I tried setting different sizes but they all were messed up, is it the model creator's mistake or mine?

Last edited by edon1337; 07-19-2018 at 08:53.
edon1337 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-20-2018 , 02:55   Re: Victim death event | Proper model size
Reply With Quote #2

I don't think they are flag as dead at that point, I think it's done within CBasePlayer::Killed, as well as checking if the round should end. Is that what you are actually trying to avoid? Also I think you could've tested it yourself.

You should post the model and what you have tried up until now. It's quite possible that you are doing something wrong.
__________________

Last edited by klippy; 02-20-2018 at 02:56.
klippy is offline
Old 02-20-2018, 05:00
edon1337
This message has been deleted by edon1337.
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-20-2018 , 05:26   Re: Victim death event | Proper model size
Reply With Quote #3

Use podbots, I found them to work perfectly whenever testing anything on players, they behave just like human players.
Ham_Killed is CBasePlayer::Killed in case of "player" entities(not really, but you can look at it that way). Pre-hook will be called right before it, post-hook right after. Player is being marked as dead within that function.
__________________

Last edited by klippy; 02-20-2018 at 05:28.
klippy 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 09:49.


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