I Made a new method for spawning cars cardrop (like airdrop) and i want to share my old car spawner code.
https://www.youtube.com/watch?v=vvtNndX49cM
CLICK HERE
After Using This Tutorial Just Add Car-Spawner Item To Your ItemsDB.xml
101259
Printable View
I Made a new method for spawning cars cardrop (like airdrop) and i want to share my old car spawner code.
https://www.youtube.com/watch?v=vvtNndX49cM
CLICK HERE
After Using This Tutorial Just Add Car-Spawner Item To Your ItemsDB.xml
101259
So i added your car spawner system to my code and it messes up the cars. any idea why? they just slide all around the map.
and when i use the spawner the car is static and does not move. Anyone can help me?
remove me..
This Tutorial is Incomplete And Wrong for IReloaded source and last codex sourcer.
In warz.sln
Search for
case WeaponConfig::ITEMID_SandbagBarricade: SpawnImpactParticle(r3dHash::MakeHash(""), r3dHash::MakeHash("Barricade_Smash_Sandbag"), GetPosition() + GetFacingVector() * 2.0f, r3dPoint3D(0,1,0)); break;
Add
case WeaponConfig::ITEMID_Item_GunTurret_Crate_01: SpawnImpactParticle(r3dHash::MakeHash(""), r3dHash::MakeHash("Item_GunTurret_Crate_01"), GetPosition() + GetFacingVector() * 3.0f, r3dPoint3D(0,1,0)); break;
Search for
n.itemID == WeaponConfig::ITEMID_SandbagBarricade ||
Add
n.itemID == WeaponConfig::ITEMID_Item_GunTurret_Crate_01 ||
search
wpn->getItemID() == WeaponConfig::ITEMID_SandbagBarricade ||
add
wpn->getItemID() == WeaponConfig::ITEMID_Item_GunTurret_Crate_01 ||
search
wi.itemID == WeaponConfig::ITEMID_Lockbox ||
add
wi.itemID == WeaponConfig::ITEMID_Item_GunTurret_Crate_01 ||
search
else if(m_needToDrawBarricadePlacement == WeaponConfig::ITEMID_SandbagBarricade) { m_BarricadeMeshPlacement = r3dGOBAddMesh("Data\\ObjectsDepot\\Weapons\\item_barricade_Sandbag_built.sco", true, false, true, true ); m_ModeEditor=false; }
add
else if(m_needToDrawBarricadePlacement == WeaponConfig::ITEMID_Item_GunTurret_Crate_01) { m_BarricadeMeshPlacement = r3dGOBAddMesh("Data\\ObjectsDepot\\Weapons\\Item_GunTurret_Crate_01.sco", true, false, true, true ); m_ModeEditor=false; }
_________________________________________________________________________________________
This is complete code for no errors in game.
This Tutorial is Incomplete And Wrong for IReloaded source and last codex sourcer.
_________________________________________________________________________________________Code:search
else if(m_needToDrawBarricadePlacement == WeaponConfig::ITEMID_SandbagBarricade)
{
m_BarricadeMeshPlacement = r3dGOBAddMesh("Data\\ObjectsDepot\\Weapons\\item_barricade_Sandbag_built.sco", true, false, true, true ); m_ModeEditor=false;
}
add
else if(m_needToDrawBarricadePlacement == WeaponConfig::ITEMID_Item_GunTurret_Crate_01)
{
m_BarricadeMeshPlacement = r3dGOBAddMesh("Data\\ObjectsDepot\\Weapons\\Item_GunTurret_Crate_01.sco", true, false, true, true ); m_ModeEditor=false;
}
This is complete code for no errors in game.
REALLY? you have all the most important codes and you are saying the tutorial is not complete because you're too lazy to declare the item in the weaponconfig header and want this in the tutorial too :O:???
Brother,i make the config easy,but other peoples dont know what to do, i just completed.
I just completedI just completed
allready completed xD *-*
You can spawn, ok! But after use you cant take your car and loose. Not god.