May 21, 2024, 06:42:14 pm
Username:

Password:

Topic: Arming Explosives floating text  (Read 1299 times)

S.T.A.L.K.E.R

  • Posts: 946
  • S.🅱.A.W.N.E.A.S.T
    • View Profile
Arming Explosives floating text
« on: February 10, 2016, 09:22:23 pm »
So something like this



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

BTW dropping C4 has no drop animation :P

S.T.A.L.K.E.R

  • Posts: 946
  • S.🅱.A.W.N.E.A.S.T
    • View Profile
Re: Arming Explosives floating text
« Reply #1 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)


Strike

  • Guest
Re: Arming Explosives floating text
« Reply #2 on: February 24, 2016, 04:00:47 pm »
I agree, arming/disarming explosives should have floating text. Very good suggestion with examples and video :)
« Last Edit: February 24, 2016, 04:10:47 pm by Bobblehead »