1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UE2 - UT2kX Pickups, spawning and frags

Discussion in 'Programming' started by spongy, Jun 30, 2009.

  1. spongy

    spongy New Member

    Joined:
    Jun 17, 2009
    Messages:
    17
    Likes Received:
    0
    Hi there, im working on a research project for a university using ut2004.

    I was wondering if there was a way to identify if a human player has picked up a weapon or ammo, basically some kind of pickup?

    Also if there a way to identify if the player has killed or been killed and output this to a log file?
     
  2. Zur

    Zur surrealistic mad cow

    Joined:
    Jul 8, 2002
    Messages:
    11,717
    Likes Received:
    4
    One solution is to extend existing Pickups and Weapons and have them output to log or send a message to another object/actor. You can then use a Mutator to swap standard items with the ones you've created.

    In UT2004's equivalent of the Mutator class (hope Wormbo doesn't fault me for this ^^) there should be a function that explicitely does this. Something like PreventDeath() perhaps ? The UnrealWiki should have something to say on the topic.
     
    Last edited: Jun 30, 2009
  3. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,915
    Likes Received:
    36
    PreventDeath is in GameRules, but it should be used in combination with ScoreKill in the same class, because PreventDeath can prevent death. (surprise! :p)
     
  4. spongy

    spongy New Member

    Joined:
    Jun 17, 2009
    Messages:
    17
    Likes Received:
    0
    thank you, im still unsure how o get it all done but you guys have been very helpful!
     

Share This Page