replace bombcart

jokerz

L1: Registered
Sep 30, 2008
7
0
I am trying to replace the bombcart on badwater with another model. I am using sourcemod to replace models. I have been able to replace the bombcart with a hl2 model but now my issue is that the cart does not move, it heals fine but when you are near it, it does not move. Can someone please point me in the right direction..



 
Last edited:

bOse

L1: Registered
Jul 28, 2008
27
0
maybe u're kart setup is not good ?
 

drp

aa
Oct 25, 2007
2,273
2,628
i believe he just replaced the kart model with sourcemod, a third party plugin as the map seems to be badwater
 

Zeewier

L9: Fashionable Member
Sep 20, 2008
619
262
Is that mod you're using for replacing all models or just the bombcart. Because I think it just replaces the entity (the cart) with new keyvalues (settings) ect. so it wont move with the other entities (the healing-thing ect.) anymore...
 

jokerz

L1: Registered
Sep 30, 2008
7
0
I took

{
"origin" "2560 -800 160"
"targetname" "minecart_physprop"
"spawnflags" "260"
"skin" "0"
"shadowcastdist" "0"
"pressuredelay" "0"
"physdamagescale" "0.1"
"PerformanceMode" "0"
"nodamageforces" "0"
"model" "models/props_trainyard/bomb_cart.mdl"
"minhealthdmg" "0"
"massScale" "0"
"inertiaScale" "1.0"
"health" "0"
"forcetoenablemotion" "0"
"fadescale" "0"
"fademindist" "-1"
"fademaxdist" "0"
"ExplodeRadius" "0"
"ExplodeDamage" "0"
"disableshadows" "1"
"Damagetype" "0"
"damagetoenablemotion" "0"
"angles" "0 180 0"
"classname" "prop_physics_override"
"hammerid" "3102367"
}

and replaced line labeled "model" "models/props_trainyard/bomb_cart.mdl"

with another model
 

Chilly

L6: Sharp Member
May 3, 2008
326
127
You should try the Stripper Meta-Mod. It allows you to replace entities when the map loads instead of having to modify the actual map file. Here's the one my clan server used:

modify:
{
match:
{
"model" "models/props_trainyard/bomb_cart.mdl"
"classname" "prop_physics_override"
}
replace:
{
"model" "models/dog.mdl"
"angles" "0 0 0"
"origin" "2560 -800 135"
}
}

So it finds any entities matching the first section and replaces any of the key pairs in the second section. There are some entities that won't work. I believe it's because they have no collision model or something. I'm still wondering how to get animations working for them. But this should at least get you started. If you make progress with this, let us know how you did it. :)
 

Snipergen

L13: Stunning Member
Nov 16, 2007
1,051
150
Wait wut that can't be? I placed the origin too low to make it look wrong of somebody did that o_O
 

Chilly

L6: Sharp Member
May 3, 2008
326
127
Wait wut that can't be? I placed the origin too low to make it look wrong of somebody did that o_O

If you look at my example you can see that it's possible to modify the origin of the cart as well. You can also rotate it, so no use putting it backwards. I did have our cart rotated 180 degrees, which was kind of funny. :/