Author Topic: Changes to the Spear for an Add-On I'm making  (Read 2830 times)

I need to make some changes to the Spear Script, and I really need some help before New Year's. (Please help if you can) If anyone helps me get these tasks accomplished I will give them their rightful credit, and not steal it for my own.

I need to make these changes.

- I need to make it so you can hold multiple of them
- I need to make it so that it leaves your inventory when used
- I need it to not do anything besides have a shake camera effect on the thrower
- I need it to not flip direction when you pull it up to throw it.


Thank You

first 2 sound a bit like the HE-grenade

first 2 sound a bit like the HE-grenade
I just wanted to edit the spear instead of the HE Grenade, so I wouldn't have to bother with even more credit.

- I need to make it so you can hold multiple of them
Rewrite [ItemName]::onPickup(%this,%obj,%slot).
- I need to make it so that it leaves your inventory when used
Rewrite [WeaponImageName]::onFire(%datablock,%player,%slot).
- I need it to not do anything besides have a shake camera effect on the thrower
Make the direct and radius damage zero.
- I need it to not flip direction when you pull it up to throw it.
Make it use and freeze the shift back animation for the player in the place where you want it. The spearthrow animation always flips the weapon.

space guy, did you like go to school for this or are you just a genuiss?

It doesn't take a genius to re-invent the wheel.

mr.pickle do you hate space guy?


It doesn't take a genius to re-invent the wheel.

It doesn't take a genius to steal from Ephi.

mr.pickle do you hate space guy?

No, why would I hate a fellow MotEer.

ohh yeah you're both in the same clan how silly of me to forget!

- I need to make it so you can hold multiple of them
Rewrite [ItemName]::onPickup(%this,%obj,%slot).
- I need to make it so that it leaves your inventory when used
Rewrite [WeaponImageName]::onFire(%datablock,%player,%slot).
- I need it to not do anything besides have a shake camera effect on the thrower
Make the direct and radius damage zero.
- I need it to not flip direction when you pull it up to throw it.
Make it use and freeze the shift back animation for the player in the place where you want it. The spearthrow animation always flips the weapon.
Thank you so much. Just one question though. what's the shift back animation, and how would I change it?. (Sorry, I don't know very much about add-ons.)

Edit: Oh, and I have one more question. On a spear type weapon, in Milkshape 3-D what joints besides the mountpoint are necessary?
« Last Edit: December 27, 2007, 02:30:45 AM by WRB852 »

The shift back animation is the 'recoil' when you fire some guns. It's also what happens when you shift a temp brick back towards you in third person.

For a list of all the animations for a player, put this in the console when hosting:

mDTS.dump();

The part after the filename for each 'sequence' is the animation. ("shiftBack", "root", "jump")

Sorry for being such a n00b, but I have no idea how to edit these animations, or where to find them. Could you go a little more in depth for that?

You can't edit animations.

To play them you do %player.playThread(0,nameofanimation);