News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 9th Jul 2012, 11:43 AM   #1
Gizzy
The Banhammer Cometh
 
Gizzy's Avatar
 
Join Date: May. 30th, 2009
Location: United Kingdom
Posts: 195
What do I need to know when porting a U1 mod to UT?

I've never really touched on UT's weapon code before, but I've seen some functions that made little/no sense, like ClientFire and loads more. I'm planning on porting my own CounterStrike weapons mod to UT and I was wondering if anybody knew of any specific extra bits of code I'd need to add before I go on a copy/paste frenzy.

Here is the base class (CSWeapons.uc) - http://pastebin.com/R1EFGd6U
And here's a child class of that (SG552.uc) - http://pastebin.com/68DRPUfT

(The ClientSetMFlash and PostRender functions are hacks of my own canvas hack to get MuzzleFlash working in different resolutions and to move it when some guns are zoomed. If somebody knows of a better way to handle this, do tell!)

It would be very helpful if someone could look over the code and tell me how I could optimise it for Unreal Tournament?

MANY thanks

Last edited by Gizzy; 9th Jul 2012 at 11:46 AM.
Gizzy is offline   Reply With Quote
Old 14th Jul 2012, 04:32 PM   #2
Gizzy
The Banhammer Cometh
 
Gizzy's Avatar
 
Join Date: May. 30th, 2009
Location: United Kingdom
Posts: 195
Bumping the thread, could somebody help?
Gizzy 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 10:05 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