FOnline: Reloaded

Development => Suggestions => Topic started by: S.T.A.L.K.E.R on February 10, 2016, 09:22:23 pm

Title: Arming Explosives floating text
Post by: S.T.A.L.K.E.R on February 10, 2016, 09:22:23 pm
So something like this

(https://media.giphy.com/media/TQyVgbIZcvgcM/giphy.gif)

but for whenever someone is arming C4 or Dynamite. Could say something like "Armed Explosive"

BTW dropping C4 has no drop animation :P
Title: Re: Arming Explosives floating text
Post by: S.T.A.L.K.E.R on February 24, 2016, 07:55:20 am
I looked into adding this myself while looking at slowhand's FA text tutorial.

Turned out it wasn't that hard to add :P

So in explosion.fos, you gotta add VerboseAction(cr, "Arms EXPLOSIVE HERE");

something like this

Dynamite

Code: [Select]
   if(pid == PID_DYNAMITE)
    {
        Item@ activateExpl = cr.AddItem(PID_ACTIVE_DYNAMITE, 1);
VerboseAction(cr, "Arms Dynamite");

Plastic Explosives
Code: [Select]
else if(pid == PID_PLASTIC_EXPLOSIVES)
    {
        Item@ expl = cr.AddItem(PID_ACTIVE_PLASTIC_EXPLOSIVE, 1);
VerboseAction(cr, "Arms explosive");

Mine

Code: [Select]
else if(pid == PID_MINE)
    {
VerboseAction(cr, "Arms Mine");
        Item@ mine = cr.AddItem(PID_ACTIVE_MINE, 1);
        if(!valid(mine))

However adding a separate text for each explosive was something I couldn't get right, so I just put "Disarms explosive" for all...somewhere along these lines

Code: [Select]
    // Success
        if(chance > Random(1, 100))
         {
    VerboseAction(cr, "Disarms Explosive");
            if(pid == PID_ACTIVE_DYNAMITE)

https://www.youtube.com/watch?v=S43W0xAeRNE
Title: Re: Arming Explosives floating text
Post by: Strike on February 24, 2016, 04:00:47 pm
I agree, arming/disarming explosives should have floating text. Very good suggestion with examples and video :)