Raised This Month: $ Target: $400
 0% 

Best way to block vehicle kills


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-31-2014 , 13:11   Best way to block vehicle kills
Reply With Quote #1

Let's get on the topic - I'm trying to find the best way to block any kills with any kind of vehicle. Allright, I had some ideas (which may sound suuper srupid):
- registering message (get_user_smgid("DeathMsg")) and check if the weapon entity is "vehicle". Allright, but how to block (set_msg_block?). And also, how to prevent player from death - just continue pushing by the vehicle or just set his origin away from the vehicle ent?
- registering Ham_TakeDamage, where to check if inflictor is "vehicle" and then return the ham_supercede. But is this ham even called on vehicle kill?!


I'm still thinking that the first way is better, but have no clear idea how to fully block the killing and prevent player from dying... Thanks!
__________________

Last edited by Flick3rR; 07-31-2014 at 13:11.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
 



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 13:10.


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