Posted by Jeff Clark on March 13, 1998 at 10:33:07:
In Reply to: Can someone help me create/add an extra item? posted by Elanthil on March 13, 1998 at 08:07:41:
> Ok, its time to begin on the new items/powerups phase of my project.
> There are several jetpack patches out there, but their not 'items', their part of the player from the 'get go'.
There is a grappling hook patch that is a new item bin. Check that out.
It's probably in the patches section of jk.net. Combine this with a
backpack look and item cog to make it pickupable. Research is needed
here.
> what I need to do is this:
> 1)add a NEW item, associated bins, etc to the game in my level or replace the fieldlight with one
Try replacing the fieldlight. This can probably be done just for your
level(s), but I wouldn't know how to do that. Read up heavily in the
specs.
> This will be a jetpack that uses energy cells (like the conc. rifle does) to power itself.
> 2) Energy usage will be set to 1 cell/second of flight
to reduce energy use ChangeInv(player,42,-1); Check the weapons
bin for the concrifle to check this. Bin 4 is the fieldlight.
> 3) Unlike the jetpack mods out there, Energy for the pack will NOT regen. Player must find more energy cells to keep using jetpack.
ChangeInv(player,42,-1) should make this problem academic.
> 4) Define/add Jetpack object so I can place it and its sprite(?) in the game as a powerup
make an item cog and replace the fieldlight cog from items.dat
I am not completely sure this will work. Test this yourself.
> 5) Hardcode key assignments for the jetpack so that:
> ***Any key bound for thrust (including hover) will activate the jetpack
> keypad 8 is forward thrust
> keypad 7 is downward thrust
> keypad 9 is upward thrust
> keypad 2 is reverse thrust
> keypad 4 is thrust that slides you to left
> keypad 6 is thrust that slides you to right
> keypad 5 stops ALL movement in ALL directions and lets you hover in place, while still using energy cells as if thrusting in a direction.
> (**my best guess on hovering is thrusting in all 6 directions at the same time?)
This involved hotkey bins. I can't really help you here.
> 6) assign a sound to the jetpack
I believe that this would be handled in the item cog
> 7) make heavy smoke particles emit from the middle of the player's back
> (hehe, I briefly considered letting it come out his rear end but I think LEC
> would dissaprove)
This would also probably be handled by an item cog. I only make the
cogs I need, so I don't work with item cogs.
>
> Ok...that should do it.
> If someone can help me at least get started with this I'd really really appreciate it.
> I KNOW this is a tall order, but Im totally lost on something like this.
> in exchange for the tutoring, assistance, and writing/helping write the .cogs, , .uni, items.dat entries, etc for this, I will give full credit to the person or persons helping me, both in the level text file and in each cogfile, etc, and promote your work on the Team Carida homepage under a 'special thanks to' page.
> Sincerely (if confusedly),
> Elanthil. Coordinator, Team Carida Addon Development Team