Raised This Month: $ Target: $400
 0% 

Extra Damage.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 02-22-2007 , 02:08   Extra Damage.
Reply With Quote #1

I'm trying to think of ways to do extra damage.

I've seen the way of using fm fake damage and then creating a death message if the user should be dead (which I think keeps cs stats happy)

But could i just create an extra damage message and would this cause extra damage to be inflicted.

So hook the damage message, check if its the right type. Then create a second damage message with say half the damage amount, but all the other details the same. So user recieves 1.5x damage.

And if this is possible how do I do it. Not sure on all the args for a dmg message
pRED* is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-22-2007 , 19:35   Re: Extra Damage.
Reply With Quote #2

The Damage message tells the client that he took damage, and thus makes the red damage indicators come up. It doesn't actually change his health, it only creates the graphic on his screen.

Since we have no way of utilizing the game's TakeDamage function, which is where all damage calculations end up, we can't properly force damage.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-24-2007 , 16:22   Re: Extra Damage.
Reply With Quote #3

Sawce has just released his Ham Sandwich module which allows you to call TakeDamage directly in most popular mods, which is probably what you want. You can download it here:
http://forums.alliedmods.net/showthread.php?t=51824
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 00:42.


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