Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////Search:////////
- "usedItemId==WeaponConfig::ITEMID_C01Vaccine||"
- //////////Add :///////
- "usedItemId==WeaponConfig::ITEMID_Item_GunTurret_Crate_01"
- ///////Search :////////
- case WeaponConfig::ITEMID_Lockbox:
- return UseItem_Lockbox(n.pos, n.var1, itemID);
- break;
- Add Below :
- case WeaponConfig::ITEMID_Item_GunTurret_Crate_01:
- #ifdef VEHICLES_ENABLED
- {
- int vehicleType = 0;
- //Car Spawn
- r3dVector position = GetPosition();
- position.x += 3.0f;
- char name[28];
- sprintf(name, "Vehicle_0_0", obj_Vehicle::s_ListOfAllActiveVehicles.size() + 1, this);
- obj_Vehicle* vehicle = (obj_Vehicle*)srv_CreateGameObject("obj_Vehicle", name, position);
- vehicle->SetNetworkID(gServerLogic.GetFreeNetId());
- vehicle->NetworkLocal = true;
- vehicle->spawnObject = 0;
- vehicle->spawnIndex = -1;
- vehicle->SetVehicleType((obj_Vehicle::VehicleTypes)vehicleType);
- vehicle->SetRotationVector(GetRotationVector());
- vehicle->OnCreate();
- return 0;
- }
- #endif
- break;
- /////////Search :////////
- ITEMID_Medkit = 101304,
- //////Add Below//////
- ITEMID_Item_GunTurret_Crate_01 = 101259,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement