Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: smasher248 on November 08, 2018, 07:43:50 pm
Title: Vehicle help
Post by: smasher248 on November 08, 2018, 07:43:50 pm
How do i apply screen shake to players.
How do I rotate the vehicle in a large circle on death.
Why is this deathmodel not applying on vehicle death.
Title: Re: Vehicle help
Post by: codmoddd1234 on November 09, 2018, 09:47:45 pm
Add deathmodel to a csv if you havent already. Check appdata/.../mods/mapname/missing_assets.csv for anything related to your vehicle, ignore everything else in it. If the rotation happens after death you can get "classname" "script_vehicle_corpse" and check the targetname to be sure its the right one but you cant use functions like rotate on the corpse so you need to spawn a new script_model at the corpse.origin, delete or hide the corpse, rotate the script_model. Another option would be to give the vehicle (X*2) health and in gsc wait until (X) dmg was done, rotate the script_vehicle or use a crash animation then kill it through script. If you need a gsc example for either i can upload one in a few hours when im home.