Results 1 to 7 of 7
  1. #1
    Iron Guard
    Join Date
    Dec 2009
    Location
    Russia
    Posts
    519

    Default Chain of events when Taking damage???

    Chain of events when Taking damage???
    what function in which classes are called with which sequence?

  2. #2
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    Open the source code for the class you are questioning about, and look for the TakeDamage function. That will tell you.
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  3. #3
    Iron Guard
    Join Date
    Dec 2009
    Location
    Russia
    Posts
    519

    Default

    yes, i have looked, but in UT game sources there are some functions which are called from engine and not from any TakeDamage() function.

  4. #4
    Iron Guard
    Join Date
    Dec 2009
    Location
    Ontario, Canada
    Posts
    632

    Default

    I don't believe so.

    Projectiles "Process Touch" event calls "TakeDamage" in the touching actors class. There is nothing native about it. Falling and other methods of dying are in the pawns class as well, they all call TakeDamage as well.

  5. #5
    Iron Guard
    Join Date
    Dec 2009
    Location
    Russia
    Posts
    519

    Default

    hm, thanx, but i am pretty sure that i saw one or even more functions which are called from nowhere. i tried to find where are they called from, but did not found it. thats why i thought they are called from engine.

    i need to look one more time again, maybe i just did not found where it was called (but i searched very well)

  6. #6
    Iron Guard
    Join Date
    Dec 2009
    Location
    Ontario, Canada
    Posts
    632

    Default

    If UTPawn.uc contains

    Super.TakeDamage....

    Then you also have to look at Pawn.uc which is probably where your mystery lies.

  7. #7
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    yeah TakeDamage() is the script function called for everything that takes damage.

    It is never called by the engine itself, afaik.

    search the source tree./
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.