Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Bullet Casings!
Bullet Casings!
2001-06-02, 8:19 AM #1
Hey I am Making A Global Operations Mod For Jk And I was Wondering if Anyone Could Help Me OUt, Ok I Want When You Should A Casing Flys Out Of Your Gun!, And i Made A Casing Model Already And i Can't Seem To Get It To Work Can Anyone Help me!

------------------
Quote:
"I Will Make This Whole Planet Suffer[/QOUTE]
"I Am The Prince Of All Saiyans Once Again!"
2001-06-02, 1:12 PM #2
Make a template for the casing and then, in the fire cog, FireProjectile at a different angle (not straight ahead). My JED isn't working right now so I can't give you specifics. E-Mail me at dragonphinn@apok.org
[url = "http://www.DelphiDragon.cjb.net"]The Dragon's Lair[/url]. Game Programming in Borland Delphi.
2001-06-03, 11:37 PM #3
Here ya go:

Code:
The template:

# DESC: bullet casing
# BBOX: 0 0 0 0 0 0
+casing     _weapon  orient=(0.000000/90.000000/0.000000) timer=1.000000 model3d=casing.3do size=0.014895 movesize=0.014895 surfdrag=3.000000 airdrag=0.800000 mass=2.000000 physflags=0x225 vel=(0.2500000/0.00000/0.50000) buoyancy=0.250000 typeflags=0x40309 soundclass=casing.snd

The coging info:

flex   dummy=-1   local
template   casing=+casing    local

   //creates the casing
   dummy = FireProjectile(player, casing, -1, -1, '0.0325 0.075 0.015', '0 270 0', 1.0, 0x0, 0, 0);

   //makes it fly at a random trajectory (but not to random)
   SetThingRotVel(dummy, VectorSet(500*(Rand()-0.5), 500*(Rand()-0.5), 500*(Rand()-0.5) ));


Notes: You have to make the casing's 3do face east in order for the casing to come out facing the right direction when fired out of the gun. Make sure you also edit the vector used for the xyz position of the casing's creation point to match you weapon's bullet exit chamber as well.

-- SavageX

------------------
"Everyone dies." - Boba Fett
"Be kind to nerds because one day... one will be your boss."
SavageX's Editing Corner

↑ Up to the top!