Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Bomb Template

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
DippyDaDewott
Fighter
Fighter
Posts: 46
Joined: Mon Apr 04, 2016 2:21 pm
Title: Just a guy who loves SFD.
SFD Account: RealDippyDaDewott
SFD Alias: (SPZ)DippyDaDewott
Started SFD: 1.1.2 Around september 2012
Gender:

Bomb Template

Post by DippyDaDewott » Mon Jan 09, 2017 10:15 pm

If you want the template, Here:http://sfdmaps.at.ua/load/maps/maps_sni ... 3-1-0-2166

I Can't understand this. I'm doing everything it Tells me to, but it's not working.
Even on the template map itself the bomb wont explode.
Help?
0 x
"I've never saw a greater example of horse shit then real fucking horse shit."

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » Mon Jan 09, 2017 11:00 pm

Please, read the first script lines, you will see this:

Code: Select all

const int TIME_TO_PLANT = 3; 
const int TIME_TO_EXPLOSE = 10;

const PlayerTeam ATTACKER_TEAM = PlayerTeam.Team1; // the team that can plant the bomb
const PlayerTeam DEFENDER_TEAM = PlayerTeam.Team1; //the team that can defuse the bomb

const bool EVERYONE_CAN_BOMB = true; //eveyone can plant and defuse the bomb at any given time
const WeaponItem WEAPON_TO_BOMB = WeaponItem.PIPE; //weapon that must be used to plant the bomb
The script works with two team declaration, the teams defined in the ATTACKER_TEAM and DEFENDER_TEAM will make the script work only for them, also is needed the weapon declared in WEAPON_TO_BOMB to plant a bomb

Just change the variable EVERYONE_CAN_BOMB to true and everyone can plant and defuse bombs but I suggest you to change ATTACKER_TEAM and DEFENDER_TEAM in whatever team you want and set the players teams before the map starts.
Last edited by JakSparro98 on Mon Jan 09, 2017 11:49 pm, edited 1 time in total.
1 x

User avatar
DippyDaDewott
Fighter
Fighter
Posts: 46
Joined: Mon Apr 04, 2016 2:21 pm
Title: Just a guy who loves SFD.
SFD Account: RealDippyDaDewott
SFD Alias: (SPZ)DippyDaDewott
Started SFD: 1.1.2 Around september 2012
Gender:

Post by DippyDaDewott » Mon Jan 09, 2017 11:48 pm

Works now. Thanks a lot.
0 x
"I've never saw a greater example of horse shit then real fucking horse shit."

Post Reply