News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 30th Jun 2009, 08:39 AM   #1
spongy
Registered User
 
Join Date: Jun. 17th, 2009
Posts: 17
Exclamation Pickups, spawning and frags

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?
spongy is offline   Reply With Quote
Old 30th Jun 2009, 12:08 PM   #2
Zur
surrealistic mad cow
 
Zur's Avatar
 
Join Date: Jul. 8th, 2002
Posts: 11,679
Quote:
Originally Posted by spongy View Post
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?
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.

Quote:
Also if there a way to identify if the player has killed or been killed and output this to a log file?
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 by Zur; 30th Jun 2009 at 12:12 PM.
Zur is offline   Reply With Quote
Old 2nd Jul 2009, 03:50 AM   #3
Wormbo
 
Wormbo's Avatar
 
Join Date: Jun. 4th, 2001
Location: Germany
Posts: 5,781
PreventDeath is in GameRules, but it should be used in combination with ScoreKill in the same class, because PreventDeath can prevent death. (surprise! )
__________________
Wormbo's UT/UT2004/UT3 mods | YouTube channel | PlanetJailbreak/JDN | Unreal Wiki | Liandri Archives
Everything you ever wanted to know about replication| UnrealScript security considerations
<elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
<TNSe> nono
<TNSe> its always funny to find code a week later you dont even remember writing
<Pfhoenix> what's worse is when you have a Star Wars moment
<Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
Wormbo is offline   Reply With Quote
Old 2nd Jul 2009, 06:19 AM   #4
spongy
Registered User
 
Join Date: Jun. 17th, 2009
Posts: 17
thank you, im still unsure how o get it all done but you guys have been very helpful!
spongy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 -5. The time now is 02:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer