[HELP]LootCrates

Results 1 to 7 of 7
  1. #1
    Elite Member MrGrimm is offline
    Member +Rank
    Oct 2013 Join Date
    217Posts

    [HELP]LootCrates

    Im trying to make it so my server spawns any military items in a wood crate. I found this code but so far the only way i can get tit to work is replace Caliwood for Colorado (Line 5 ). But when i do that every item spawns in a box not just military.




    1. if (SpawnedItem == true)
    2. {
    3. switch(gClientLogic().m_gameInfo.mapId)
    4. {
    5. case GBGameInfo::MAPID_WZ_Caliwood:
    6. if (LootID != cfg->m_itemID) // For all LootIDs
    7. {
    8. cpMeshName = "data/objectsdepot/Weapons/item_lootcrate_01.sco";
    9. }
    10. else {
    11. cpMeshName = cfg->m_ModelPath;
    12. SpawnedItem=false;
    13. }
    14. break;
    15. default:
    16. switch(LootID) // Specific lootID for other maps
    17. {
    18. case 301121:
    19. cpMeshName = "data/objectsdepot/Weapons/item_lootcrate_01.sco";
    20. break;
    21. default:
    22. cpMeshName = cfg->m_ModelPath;
    23. SpawnedItem=false;


  2. #2
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [HELP]LootCrates

    check in "case 301121:"

    itemID="301121" = name="WEAP - Military"

  3. #3
    Elite Member MrGrimm is offline
    Member +Rank
    Oct 2013 Join Date
    217Posts

    Re: [HELP]LootCrates

    Quote Originally Posted by Yuri-BR View Post
    check in "case 301121:"

    itemID="301121" = name="WEAP - Military"
    Not sure what your saying to do yuri ?

  4. #4
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [HELP]LootCrates

    Quote Originally Posted by MrGrimm View Post
    Not sure what your saying to do yuri ?
    this and the id you just moficiar to another lootdata

  5. #5
    Elite Member MrGrimm is offline
    Member +Rank
    Oct 2013 Join Date
    217Posts

    Re: [HELP]LootCrates

    I did....i changed it to 301121 from 301117. Nothing spawns in wood boxes from 301121 loot.

  6. #6
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [HELP]LootCrates

    Quote Originally Posted by MrGrimm View Post
    I did....i changed it to 301121 from 301117. Nothing spawns in wood boxes from 301121 loot.
    you should check in your database if it contains this lootbox

  7. #7
    Elite Member MrGrimm is offline
    Member +Rank
    Oct 2013 Join Date
    217Posts

    Re: [HELP]LootCrates

    Quote Originally Posted by Yuri-BR View Post
    you should check in your database if it contains this lootbox
    It does.....it just wont spawn military loot with box. If i change caliwood to Colorado then all loot spawns in box.



Advertisement