Sergeant_Mark_IV Posted December 30, 2009 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. 0 Share this post Link to post
Icytux Posted December 30, 2009 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 blahThis 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. 0 Share this post Link to post
Sergeant_Mark_IV Posted December 30, 2009 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. 0 Share this post Link to post
Icytux Posted December 30, 2009 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. 0 Share this post Link to post