Home   Help Search Login Register  

Author Topic: can satchel charges be removed by a enemy?  (Read 853 times)

0 Members and 3 Guests are viewing this topic.

Commando

  • Guest
can satchel charges be removed by a enemy?
« on: 03 Oct 2003, 03:14:44 »
I got a question i would like to try but is it possible to script somehow to make a a east engineer or so be able to remve a satchel charge or something that a west black op has planted?

Fiendish

  • Guest
Re:can satchel charges be removed by a enemy?
« Reply #1 on: 03 Oct 2003, 06:36:45 »
I think it's possible with some scripting.
Don't know any scripts of that kind, but it should be possible to remove the satchel, and then use the addweapon command.

Offline Roni

  • Members
  • *
  • Play the Game !
Re:can satchel charges be removed by a enemy?
« Reply #2 on: 03 Oct 2003, 06:48:13 »
Hi Commando

I'm no expert (having just started scripting mself) but I am guessing that like everything else in the game an emplaced satchel charge is an object.

All you would have to do is attach a script to the emplaced bomb (say - "Disarm Bomb") that checks whether or not the nearest character is an engineer and if he is then allow him to disarm it (adda an action allowing him to remove the object and add one bomb to his weapon total).  You might make it work MOST of the time for engineers and SOME of the time for everyone else (99% / 50% ?) or make it only work if the disarming person had the appropriate object (disarming kit ?).

The only problem is that I don't know how you could add the action to the object BEFORE it was emplaced - until then as far as I can tell it's not an object, it's an entry on the carrying unit's weapon tally.

Maybe you could set up some sort of game logic object in the target area that checked whether or not any emplaced bombs existed, and if they did, then added the appropriate action to the relevant object (use the "nearest" command).

Unfortuanetly you've reached the end of my skill in this area   :(






Commando

  • Guest
Re:can satchel charges be removed by a enemy?
« Reply #3 on: 03 Oct 2003, 23:30:01 »
well thx for your answers, guys . I don't know how to make any scipts either  :-\ But i was thinking if there where any scripts out there  :)
well Im going to check out some other forums too and keep an eye out on this post.

Commando

  • Guest
Re:can satchel charges be removed by a enemy?
« Reply #4 on: 08 Oct 2003, 08:42:54 »
I found something in one of the 1.75 original mp missions.
So I'll depbo it and get it working :)