View Single Post
Old 07-02-2003, 04:55 PM   #6
JusticeJustinian
New Member
 
Join Date: Jun 2003
Posts: 7
JusticeJustinian is on a distinguished road
I disagree that you can't have multiple vehicles of the same type being used by multiple people using an obj/room or mob/room system.

Granted, there are several advantages to writing the system from the ground up, but there's also alot of code you'd need to rewrite to handle the new structure.

What you do is reserve a vnum block for vehicle use. That's your pool of rooms, you can either create a true pool with it, or simply create them at startup and scan through for any that are in use. I'd recommend using a true pool, but if you define retrieve/release functions this can be done later.

Once you have a room, you create a 2 way pointer between them. From there you'll need to add structures to handle components of a vehicle (mannable posts/weapons etc).

I recommend using a mob for your actual vehicle, all the prequisite behaviors are there, they fight, they move, they take damage.

-- Kwon J. Ekstrom
JusticeJustinian is offline   Reply With Quote