PDA

View Full Version : importing weapons?


(B-HOLM)
18th Oct 2001, 04:03 PM
is there template somewhere for weapons that I can use?....cause I don't wanna learn scripting I just want a template.....

ca
18th Oct 2001, 04:46 PM
Do you mean as in just adding in new weapon models? Or something else?

(B-HOLM)
18th Oct 2001, 06:04 PM
I want a script for a weapon that I can use for my weapons so I can import it into UT for use instead of the other weapons. Hope I made it more clear now

Papapishu
20th Oct 2001, 04:27 PM
If you wanna change weapons, you learn to script, even if you don't want to.
You can extract the code from Unreal Tournament by doing this:
extracting code (http://luna.vovoid.com/~zerda/ut/tuts/extracting_code.html)
Then you have a SDK where you can get the code from the different weapons.
I bet that you will find that the different weapons all have features you can almost copy directly to your weapon.
That's because UT have the best weapon balance, it has a weapon for every moment, and they show almost everything you can do... :)

(B-HOLM)
20th Oct 2001, 04:37 PM
well I understand Uscript (most of it)
but I can't make a new script from scratch........BTWwhat do I do if I don't want the weapon to use the projectiles from UT?

ca
21st Oct 2001, 12:37 PM
Try reading one of our nifty weapon tutorials and see if that doesn't help you get your feet wet - http://chimeric.beyondunreal.com/tutorials/tut16.html

Papapishu
21st Oct 2001, 05:15 PM
you make yourself a new kind of projectile ofcourse :D
subclass the projectile class.

When creating stuff in UScript, you will have to learn how to model too...
Consult FireSlash or DeeperShade and bug them for info... :D

ca
21st Oct 2001, 07:54 PM
I've never modeled anything in my life and it hasn't stopped me from doing anything in Unrealscript that I wanted to. That's why mod teams have modelers, level designers, texture artists, sound guys, and of course, us, the programmer. :)

(B-HOLM)
22nd Oct 2001, 12:14 PM
well I can model....that's why I asked how to import weapon......I also do player models

Papapishu
22nd Oct 2001, 07:41 PM
Originally posted by ca
I've never modeled anything in my life and it hasn't stopped me from doing anything in Unrealscript that I wanted to. That's why mod teams have modelers, level designers, texture artists, sound guys, and of course, us, the programmer. :)

Well, some of us aren't that spoiled :D
I learned modeling mostly for fun, and because I had to.
I'm not good, but I'll manage...

To make a long story short:
To make the weapon you make a model of it, animate it, import it and program it.
If it's a projectile weapon, you model a projectile, perhaps animate it, import it and program it.
Then you program the weapon to use the projectile

If you want samples of code, extract the code from the game the way I described.
Then you have all the info you would ever need if you wanna make weapons...
If you understand UScript, then you just cut and paste it together and shape it up so that it works correctly.
I bet you'll find what you need in the sourcecode...

If you would want it to use an already existing projectile, like the eightball rocket, you just reference to it in your code.
Depending on many factors, you can sometimes just set the weapons projectileclass to the projectile you want, or you'll have to reprogram the weapon so that it spawns the correct projectile...