Unreal Playground  

Go Back   Unreal Playground > Games > Unreal Tournament > UT Mods/Mutators

UT Mods/Mutators UT - Mods and Mutators Discussion

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-04-2003, 11:00 PM   #1
JohnnySix
C8 H10 N4 O2
 
JohnnySix's Avatar
 
Join Date: May 2002
Location: England
Posts: 5,042
Downloads: 161

UT2003 style Kicker thing :WIP / Help needed

I'm busy trying to change skins at runtime, fine with the first skin, but I can't figure a way to change more than one multiskin.

I need to change 3 different skin textures depending on a variable set in the actors properties in Ued. (Basically a team-colour thing)

Any info would be greatly apreciated.

Here's a screenshot:
Attached Thumbnails
Click image for larger version

Name:	kickerjrm2.jpg
Views:	59
Size:	20.0 KB
ID:	14239  
__________________
E X T R E M E w 0 0 t . c o m
IP: 94.75.238.104 (click to play now!)
A public 5 vs 5 gameserver (Europe)
UT99 / iCTF / SmartCTF / Mapvote / Pure / w00t
curiositykilledthecat
I C8H10N4O2

Projects
WIP - UT2004 Bulldog | VCTF-DeathCrack Completed - Shock ho mutator UT2004
JohnnySix is offline   Reply With Quote
Old 12-04-2003, 11:12 PM   #2
evil_blue_dude
the one and only
 
evil_blue_dude's Avatar
 
Join Date: Nov 2002
Location: A-a-are you mad?
Posts: 1,464
Downloads: 8

me useless at coding.



--EBD, usefully useless
evil_blue_dude is offline   Reply With Quote
Old 12-05-2003, 02:56 AM   #3
DeadMeatGF
Cynical [+]
 
DeadMeatGF's Avatar
 
Join Date: Jun 2003
Location: Aligned to Grid
Posts: 3,055
Downloads: 77

Send a message via MSN to DeadMeatGF
Quote:
Originally Posted by SabbathCat
I'm busy trying to change skins at runtime, fine with the first skin, but I can't figure a way to change more than one multiskin.

I need to change 3 different skin textures depending on a variable set in the actors properties in Ued. (Basically a team-colour thing)

Any info would be greatly apreciated.
I don't do UnrealScript, but ...

Code:
function PostBeginPlay()
{
	local CTFFlag myFlag;

	Super.PostBeginPlay();
	LoopAnim('newflag');
	if ( !Level.Game.IsA('CTFGame') )
		return;

	bHidden = false;
	if ( Team == 0 )
	{
		Skin=texture'JpflagR';	
		myFlag = Spawn(class'RedFlag');
	}
	else if ( Team == 1 )
		myFlag = Spawn(class'CTFFlag');

	myFlag.HomeBase = self;
	myFlag.Team = Team;
	CTFReplicationInfo(Level.Game.GameReplicationInfo).FlagList[Team] = myFlag;
}
From that, it looks like there are two classes, CTFFlag and RedFlag which spawn depending on the variable "Team", so I'd guess you'd need Four classes of kicker that are spawned from the kicker object. Where and what the different flag classes are, I don't know
__________________

... still here, prowling around ...

Stop/Eject & Wasteland
The next projects ... I'm working on these ones, too!

DeadMeatGF is offline   Reply With Quote
Old 12-05-2003, 02:57 AM   #4
DeadMeatGF
Cynical [+]
 
DeadMeatGF's Avatar
 
Join Date: Jun 2003
Location: Aligned to Grid
Posts: 3,055
Downloads: 77

Send a message via MSN to DeadMeatGF
Addendum - maybe there are some clues in the CTF4 code?
__________________

... still here, prowling around ...

Stop/Eject & Wasteland
The next projects ... I'm working on these ones, too!

DeadMeatGF is offline   Reply With Quote
Old 12-05-2003, 07:06 AM   #5
JohnnySix
C8 H10 N4 O2
 
JohnnySix's Avatar
 
Join Date: May 2002
Location: England
Posts: 5,042
Downloads: 161

Hehehe. Cheers for the replies DeadMeat.

Yeah, I got it sorted using a similar PostBeginPlay function to the FlagBase script.

All I was missing was [] instead of () on the multiskins entries.

Dodgy as hell.

Still, anyway, I've now got:
  • Random noises on being kicked
  • Decent Skins on the base.
  • Option to choose colour based on team (from team option in the actors properies. - In Ued. )
  • Some spooky bubble things that spawn when you jump (they weren't supposed to look like bubbles. :S)
  • Nifty lighting effects. !

A beta download soon. w00t w00t

I'm trying to figure out now how I can tweak a navigation point to work with the kicker.
__________________
E X T R E M E w 0 0 t . c o m
IP: 94.75.238.104 (click to play now!)
A public 5 vs 5 gameserver (Europe)
UT99 / iCTF / SmartCTF / Mapvote / Pure / w00t
curiositykilledthecat
I C8H10N4O2

Projects
WIP - UT2004 Bulldog | VCTF-DeathCrack Completed - Shock ho mutator UT2004
JohnnySix is offline   Reply With Quote
Old 12-05-2003, 08:10 AM   #6
JohnnySix
C8 H10 N4 O2
 
JohnnySix's Avatar
 
Join Date: May 2002
Location: England
Posts: 5,042
Downloads: 161

Here's some screens at odd angles of the new kicker base.
Attached Thumbnails
Click image for larger version

Name:	kickeraction.jpg
Views:	37
Size:	68.9 KB
ID:	14244  
__________________
E X T R E M E w 0 0 t . c o m
IP: 94.75.238.104 (click to play now!)
A public 5 vs 5 gameserver (Europe)
UT99 / iCTF / SmartCTF / Mapvote / Pure / w00t
curiositykilledthecat
I C8H10N4O2

Projects
WIP - UT2004 Bulldog | VCTF-DeathCrack Completed - Shock ho mutator UT2004
JohnnySix is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 09:32 PM.


Powered by: vBulletin Version 3 something...
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Style and Content © 2001-2009 Unreal Playground