Jump to content
Sign in to follow this  
★CT Da Mirage | RoberioJR

[Release] Timed Bomb

Recommended Posts

Author: RobérioJR

You Need To Install My Mission BaseRJFRAMEWORK.rar

Step 1:
Download Functions: Bomba.rar

Download Bomb Icon: bomb.paa
And Put The Folder: "Bomba" In Folder: "RJ\Scripts"

Step 2: Archive: Config_Items.hpp
Add This Bellow 'class VirtualItems {':

class timedbomb {
    variable = "timedbomb";
    displayName = "STR_Item_timedbomb";
    weight = 12;
    buyPrice = 15000;
    sellPrice = -1;
    illegal = true;
    edible = -1;
    icon = "RJ\Tex\bomb.paa";
};

Add Bomb To Rebel Market:
Find The Class rebel, Add "timedbomb" To 'Items[] = {...}'

Add bomb.paa Icon To: 'RJ\Tex'

Step 3: Archive: fn_UseItem.sqf
Bellow 'switch (true) do {' Add:

case (_item == "timedbomb"): {
    [] Spawn RJ_fnc_ConfigurarBomba;
};

Step 4: Archive: RJ\RJ_Functions.hpp
Add To Class RJ_Scripts:

class Bomba {
    file = "RJ\Scripts\Bomba";
    class Bomba {};
    class SliderBomba {};
    class ConfigurarBomba {};
};

Step 5: Archive: RJ\RJ_Master.hpp
Add:

#include "Scripts\Bomba\RJ_Bomba.hpp"

Step 6: Archive: RJ_Config.hpp
Add To Class RJ_Config:

   /* Timed Bomb */
  RJ_BombMinTime = 20;  //Min Of Bomb Blast Time In Settings (In Seconds)
  RJ_BombMaxTime = 240; //Max Of Bomb Blast Time In Settings (In Seconds)

Step 7: Archive: stringtable.xml
Add: 

<Key ID="STR_Item_timedbomb">
    <Original>Timed Bomb</Original>
    <Portuguese>Bomba Temporizada</Portuguese>
</Key>

 

Finished !

ScreenShot:

unknown.thumb.png.cf80c2958f08e368339f66048d86d522.png

Edited by ★CT Da Mirage | RoberioJR

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×