How do you cause the cart model to spawn?, i know its something to do with the map but im not sure how to do it
addcond 82 gives players the bumper car. Also, don't make threads like this, go ask on any other thread
[QUOTE=Fillmore;46368621]addcond 82 gives players the bumper car. Also, don't make threads like this, go ask on any other thread[/QUOTE]
k, but i need the model not the cart
[QUOTE=gonzalolog;46368854]models/player/taunts/bumpcar/bumpcar.mdl
models/player/taunts/bumpcar/bumpcar_nolights.mdl[/QUOTE]
thanks, but im not looking for paths, im looking on how to force it on the player
Are you serious?
addcond 82
[QUOTE=gonzalolog;46368884]Are you serious?
addcond 82[/QUOTE]
like i said earlier i want the cart to work like in the halloween gamemode, not to be floating on an invisible cart scraping my ass along the fucking ground pooping trails
if the map has the kart models pre-cached within it addcond 82 will cause the models to be used properly.
That's because the model isn't being precached then. Just place the models of the cart in a hidden place to get them to be precached then.
[QUOTE=kibbleknight;46368970]if the map has the kart models pre-cached within it addcond 82 will cause the models to be used properly.[/QUOTE]
[QUOTE=lionheart1066;46368976]That's because the model isn't being precached then. Just place the models of the cart in a hidden place to get them to be precached then.[/QUOTE]
like this? because it doesent work
[IMG]http://puu.sh/cwokD/6cd8e779f0.jpg[/IMG]
got it working now, thanks for the help and sorry for being a dick, im really tired
[editline]30th October 2014[/editline]
[url]http://puu.sh/cwpKu/a8ca30c48e.rar[/url]
sample map for those interested on how the basics work
Full list of stuff that may be need to be precached aswell:
[php]
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");
}
[/php]
[QUOTE=HaloFollower.;46369027]like this? because it doesent work
[IMG]http://puu.sh/cwokD/6cd8e779f0.jpg[/IMG]
got it working now, thanks for the help and sorry for being a dick, im really tired
[editline]30th October 2014[/editline]
[url]http://puu.sh/cwpKu/a8ca30c48e.rar[/url]
sample map for those interested on how the basics work[/QUOTE]
Might wanna set the duration to -1 instead, which is indefinite until manually disabled. A wee bit more reliable.
[QUOTE=Kahgarak;46374701]Might wanna set the duration to -1 instead, which is indefinite until manually disabled. A wee bit more reliable.[/QUOTE]
Setting it -1 will result in the cond getting removed as soon as the player leaves the trigger.
iirc kart spawning is controlled by an entity, might want to decompile the event map and take a look, couldn't tell you the name of it though, sorry.
Though i could be wrong so i guess this post isn't all that helpful...
[QUOTE=Killbane;46376805]iirc kart spawning is controlled by an entity, might want to decompile the event map and take a look, couldn't tell you the name of it though, sorry.
Though i could be wrong so i guess this post isn't all that helpful...[/QUOTE]
I already decompiled it and the kart thing is just a condition which can be enabled through "addcond 82" or the addcond entity for Tf2.
Edit:
[QUOTE=Mitchel.;46369991]Full list of stuff that may be need to be precached aswell:
[php]
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");
}
[/php][/QUOTE]
Where exactly do I add that to my map?
Edit²:
Forgive me, I'm dumb. I just realized that's a plugin script and not actually meant to be used in Hammer. Should have known...
Anyway, thanks for the list to pre-cache!
Sorry, you need to Log In to post a reply to this thread.