Damage Indicator mod

Bio88Bio88 Join Date: 2012-03-06 Member: 148267Members
edited March 2012 in Modding
Just curious if anyone has looked into this. I can't imagine it would be very difficult. Being a new member to the community I haven't had time to even open the spark editor yet to mess around in there.

So back in the CS days I remember mods that would indicate when you shot an enemey a number would appear indicating how much damage that shot did. Also quite common in other games like WoW with mods like scrolling combat text, and numerous other examples.

Being this a beta and that I am a new player, I often struggle with when I actually hit a marine/alien and if I did damage to them, I think this would help me a little, and give me a better understanding of how much damage certain weapons/attacks do.

Thoughts?
<i><!--sizeo:1--><span style="font-size:8pt;line-height:100%"><!--/sizeo-->
edit: corrected title --Zaggy<!--sizec--></span><!--/sizec--></i>

Comments

  • NominousNominous Baltimore, MD Join Date: 2012-02-18 Member: 146518Members
    This is a great idea. A good example is from TF2, where damage indicators can be toggled to appear above the enemy's head:

    <center><object width="450" height="356"><param name="movie" value="http://www.youtube.com/v/FzdD8flv5_g"></param><embed src="http://www.youtube.com/v/FzdD8flv5_g" type="application/x-shockwave-flash" width="450" height="356"></embed></object></center>

    Naturally, the player should be able to change the text color/size to suit his needs. On-hit sounds compliment the damage indicators as well. Sadly, I lack the programming skills to write this mod, and hopefully a modder or even UWE could try to implement it.
  • Bio88Bio88 Join Date: 2012-03-06 Member: 148267Members
    edited March 2012
    Thanks for posting that man, that is a perfect example of what I am looking for.

    I think the sound effect ruins the immersion of NS2 though. The sound effect is cool in a more casual/cartoonish (not sure if that is the right word) of a game like TF2. But I think the text only would be suitable for NS2.

    The code for displaying the text is already there, like when you kill an enemeny you get the little +5 in yellow text in the middle of your screen. I think something like that but maybe in a different color either blue/red/green etc. would be perfect.



    Anyone of the developers and/or modders have an idea of what the scale of a project like this would be? from the lack of responses I have seen in this thread, I assume no one has attempted this yet. It may be something I try to look at myself.
  • TheGrayGooTheGrayGoo Join Date: 2012-06-21 Member: 153528Members
    This is something I would be interested in.
  • JimWestJimWest Join Date: 2010-01-03 Member: 69865Members, Reinforced - Silver
    edited July 2012
    You can't use the +5 yellow text cause it's getting send from the server to the client,
    If you want to that mod you could only change the client.
    But you can use the "WorldTextMessage" function like the resources getting displayed above the rt.

    It's no hard thing to do such a Mod, you just need to hook the DamageMixin:DoDamage function (with the Hooking system from fsfod)
    to get the Damage and then call
    <!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->(target and damage can you get from DoDamage)

    local player = target:GetControllingPlayer()
    local worldmessage = BuildWorldTextMessage(ToString(damage), target:GetOrigin() + Vector(0, 1.5, 0))

    Server.SendNetworkMessage(self, "WorldText", worldmessage, true)<!--QuoteEnd--></div><!--QuoteEEnd-->

    and a little Message will apear above the player with the amount of damage.
Sign In or Register to comment.