Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sergeant_Mark_IV

Driveable Vehicles

Recommended Posts

I have seen many mods with drivealbe vehicles, such as All Out War and Shotgun Frenzy. But I can't find how to make it. Can somebody help me?

For now, all I know is: You need a player for the vehicle. his sprites, his health, size, etc.
Then, you need an item, that when colected, calls a script to make the player drive the vehicle.
Then, you need the vehicle's weapon. With the alt fire allowing you to go outside.

Now, the hardest part. Wich scripts do I need?

Thanks.

Share this post


Link to post

Well, you need to make a Playerclass, that is the vehicle.

ACTOR DrivableTitan : DoomPlayer
{
	Radius 48
	Height 156
	Mass 9999
	Speed 0.5
        Scale 1.5
	Health 2000
        Painchance 0
	Player.DisplayName "Titan"
        Player.MorphWeapon "TitanLauncher"
        Player.JumpZ 0
        Player.ViewHeight 96
        Player.AttackZOffset 0
	+NOSKIN
        +NOBLOOD
        +NORADIUSDMG
        -PICKUP
	States
        blah blah blah
This is the titan i made for AOW2 which has changed alot since i made it.

so yeah the only thing that differs from a normal player is maybe the Player.MorphWeapon and -PICKUP. the rest really depends on how you want it to be. in the states you might want to make it play a engine sound or something (which is fuck damn hard to do D: )or via a ACS script.

then there is many ways to make you "be the vehicle"(morph)

1 way, have a pickup of some sort to morph you.
ACTOR Titanium  : PowerUpGiver 666
{
	Radius 10
	Height 10
	Inventory.PickupMessage "Thou posesseth the Titan!"
	Inventory.UseSound "misc/p_pkup"
	Inventory.Amount 1
	Inventory.MaxAmount 1
	Powerup.Type Titan
	Powerup.Duration 65538
	+COUNTITEM
	+FLOATBOB
	-INVENTORY.AUTOACTIVATE
	-INVENTORY.ALWAYSPICKUP
	States
	{
	Spawn:
		TITA A 1
		Loop
	}
}

ACTOR PowerTitan : PowerMorph
{
	PowerMorph.PlayerClass "DrivableTitan"
	PowerMorph.MorphStyle (MRF_FULLHEALTH|MRF_ADDSTAMINA|MRF_UNDOBYDEATH)
}
yeah thats one ugly way to do it. not recommended by me.

the other way to do it is via ACS

http://zdoom.org/wiki/MorphActor
MorphActor  (0, "DrivableTitan", 0, 65538, MRF_FULLHEALTH|HRF_ADDSTAMINA|UNDOBYDEATH)


And hopefully you find out how to jump out and back in with the altfire yourself. i have somewhat made such a thing but i dont bother to explain it.

Share this post


Link to post

Thanks for the help. I will try to find out what I can do.

Also, how can I give the vehicle his weapon? Give actor inventory item funcion?
And to take the player weapons away? How to retrive?

I'm sorry. I'm very noob at acs.

Share this post


Link to post
Sergeant_Mark_IV said:

Thanks for the help. I will try to find out what I can do.

Also, how can I give the vehicle his weapon? Give actor inventory item funcion?
And to take the player weapons away? How to retrive?

I'm sorry. I'm very noob at acs.


heh, if you look at the code i posted.

there is that "Player.Morphweapon". so when you get morphed you will automatically loose your weapons and get the weapon you define there instead.

and you get them back when unmorphing.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×