The Exiled http://theexiled.pwnageservers.com/forum/ |
|
Lesson Two http://theexiled.pwnageservers.com/forum/viewtopic.php?f=4&t=8 |
Page 1 of 1 |
Author: | TE-Noxwizard [ Wed Jun 08, 2005 7:19 pm ] | ||||||||||
Post subject: | Lesson Two | ||||||||||
Since there were no questions about Lesson One, I'm moving into Lesson Two. It is shorter. We will be making the Railgun. It has two images. In base, you need to: add the weapon to the armors you want to carry it (armordata.cs) in Item.cs: define ammo ($WeaponAmmo) add the weapon to weapon rotation
define itemimagedata and itemdata define projectiles in baseprojdata and explosion tag in baseexpdata. you can create a new sound in nsound.cs if you like.. in station.cs: add to stations so you can buy
add ammo to resupply from stations
Weapon rotation can be a real pain. If you lock up while switching weapons forwards or back, check there. Double weapons are fairly simple, heres a simplified version based on Annihilations Railgun. First create a second weapon image to use:
Then include some code to mount and remove it when the parent weapon is mounted:
Author-Plasmatic |
Author: | TE-Noxwizard [ Wed Jun 08, 2005 7:31 pm ] | ||
Post subject: | |||
Anyway, you're probably wondering what everything is and does. Here's a breakdown.
|
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |