[Tutorial] Car Spawners !

Results 1 to 13 of 13
  1. #1
    Proficient Member Burak DatLife is offline
    MemberRank
    Jan 2015 Join Date
    inetpub/wwwrootLocation
    173Posts

    [Tutorial] Car Spawners !

    I Made a new method for spawning cars cardrop (like airdrop) and i want to share my old car spawner code.




    CLICK HERE

    After Using This Tutorial Just Add Car-Spawner Item To Your ItemsDB.xml
    101259


  2. #2
    Member Thiago Costa is offline
    MemberRank
    Sep 2013 Join Date
    51Posts

    Re: [Tutorial] Car Spawners !

    Thanks for sharing. Very good

    - - - Updated - - -

    Quote Originally Posted by Burak DatLife View Post
    I Made a new method for spawning cars cardrop (like airdrop) and i want to share my old car spawner code.




    CLICK HERE

    After Using This Tutorial Just Add Car-Spawner Item To Your ItemsDB.xml
    101259


    Adding the items?
    Do I like the Locker? changing only the paths?

    Update:

    It's working.
    Now I wanted to know how to make the car go back to this pressing F5, you have this code?
    Last edited by Thiago Costa; 15-05-16 at 09:43 AM.

  3. #3
    DeadZone The Unknown is offline
    MemberRank
    Feb 2014 Join Date
    CanadaLocation
    442Posts

    Re: [Tutorial] Car Spawners !

    Quote Originally Posted by Thiago Costa View Post
    Thanks for sharing. Very good

    - - - Updated - - -





    Adding the items?
    Do I like the Locker? changing only the paths?

    Update:

    It's working.
    Now I wanted to know how to make the car go back to this pressing F5, you have this code?
    Lmao, that's from NewZ. Just create a function yourself?

  4. #4
    Member Thiago Costa is offline
    MemberRank
    Sep 2013 Join Date
    51Posts

    Re: [Tutorial] Car Spawners !

    Quote Originally Posted by darkshadowm16 View Post
    Lmao, that's from NewZ. Just create a function yourself?

    Can you help me with this?

  5. #5
    Enthusiast Anarchy4Real is offline
    MemberRank
    Jul 2016 Join Date
    Houston, TXLocation
    33Posts

    Re: [Tutorial] Car Spawners !

    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?
    Last edited by Anarchy4Real; 21-07-16 at 10:57 PM.

  6. #6
    Valued Member dldanny05 is offline
    MemberRank
    Jun 2016 Join Date
    139Posts

    Re: [Tutorial] Car Spawners !

    remove me..
    Last edited by dldanny05; 15-05-17 at 08:48 PM.

  7. #7
    Apprentice Leo Xavier is offline
    MemberRank
    Apr 2014 Join Date
    9Posts

    Re: [Tutorial] Car Spawners !

    This Tutorial is Incomplete And Wrong for IReloaded source and last codex sourcer.

  8. #8
    Proficient Member Burak DatLife is offline
    MemberRank
    Jan 2015 Join Date
    inetpub/wwwrootLocation
    173Posts

    Re: [Tutorial] Car Spawners !

    Quote Originally Posted by Leo Xavier View Post
    This Tutorial is Incomplete And Wrong for IReloaded source and last codex sourcer.
    Tutorial is complete.

  9. #9
    Apprentice Leo Xavier is offline
    MemberRank
    Apr 2014 Join Date
    9Posts

    Re: [Tutorial] Car Spawners !

    Quote Originally Posted by Burak DatLife View Post
    Tutorial is complete.
    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.

  10. #10
    ☆Dying Dawn☆ Bombillo is offline
    MemberRank
    Jan 2012 Join Date
    ValhallaLocation
    977Posts

    Re: [Tutorial] Car Spawners !

    Quote Originally Posted by Leo Xavier View Post
    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 ???

  11. #11
    Apprentice Leo Xavier is offline
    MemberRank
    Apr 2014 Join Date
    9Posts

    Re: [Tutorial] Car Spawners !

    Brother,i make the config easy,but other peoples dont know what to do, i just completed.
    I just completedI just completed

  12. #12
    Account Upgraded | Title Enabled! Adnan DatLife is offline
    MemberRank
    Aug 2015 Join Date
    main.cppLocation
    207Posts

    Re: [Tutorial] Car Spawners !

    allready completed xD *-*

  13. #13
    Enthusiast h4ii0w33n is offline
    MemberRank
    Sep 2007 Join Date
    44Posts

    Re: [Tutorial] Car Spawners !

    You can spawn, ok! But after use you cant take your car and loose. Not god.



Advertisement