[TF2] Has anyone figured out the Bumper Cars from Carnival of Carnage yet?
5 replies, posted
I have working cars, I have boost pads, I have item boxes and jumps. The only thing I'm missing is the little go-kart cosmetic that glues itself to your buttocks. Without it my little Hoovy Hovers about on floating pantaloons and my console is spammed with errors that the kart's various particles can't find a point to start from.
[THUMB]http://cloud-4.steampowered.com/ugc/27346640281328165/0807F926510222A04E93BCF0545FC7681B395029/[/THUMB]
I could spend days looking around the decompiled map before I find the entity that does this. Any ideas?
P.S. Obviously this guy figured it out: [url]https://www.youtube.com/watch?v=8XhQuXg9C2o[/url]
[QUOTE=Winner;46373966]models/player/items/taunts/bumpercar/parts/bumpercar.mdl[/QUOTE]
Yes, I'm aware of the file's location. Any clue how to attach it to a player via map triggers?
You need both bumper car models on the map, bumpercar and bumpercar_nolights. The carts will then show up. There is also a list of other things that need to be precached on the map like the bumper cars, mostly sounds.
[CODE]void CTFPlayer::PrecacheKart()
{
CBaseEntity::PrecacheModel("models/player/items/taunts/bumpercar/parts/bumpercar.mdl", 1);
CBaseEntity::PrecacheModel("models/props_halloween/bumpercar_cage.mdl", 1);
CBaseEntity::PrecacheScriptSound("BumperCar.Spawn");
CBaseEntity::PrecacheScriptSound("BumperCar.SpawnFromLava");
CBaseEntity::PrecacheScriptSound("BumperCar.GoLoop");
CBaseEntity::PrecacheScriptSound("BumperCar.Screech");
CBaseEntity::PrecacheScriptSound("BumperCar.HitGhost");
CBaseEntity::PrecacheScriptSound("BumperCar.Bump");
CBaseEntity::PrecacheScriptSound("BumperCar.Bump");
CBaseEntity::PrecacheScriptSound("BumperCar.BumpIntoAir");
CBaseEntity::PrecacheScriptSound("BumperCar.SpeedBoostStart");
CBaseEntity::PrecacheScriptSound("BumperCar.SpeedBoostStop");
CBaseEntity::PrecacheScriptSound("BumperCar.Jump");
CBaseEntity::PrecacheScriptSound("BumperCar.JumpLand");
CBaseEntity::PrecacheScriptSound("sf14.Merasmus.DuckHunt.BonusDucks");
PrecacheParticleSystem("kartimpacttrail");
PrecacheParticleSystem("kart_dust_trail_red");
PrecacheParticleSystem("kart_dust_trail_blue");
return PrecacheParticleSystem("kartdamage_4");
}[/CODE]
Thanks, the model thing worked. Guess I have to go learn how to precache stuff now, got any tutorials for that? I'm more of a "make maps look pretty" guy.
I can't tell you how to precache the sounds man, I don't know myself. You can just add the models you need to the map though.
Sorry, you need to Log In to post a reply to this thread.