Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Herska

Manipulating who executed the script?

Recommended Posts

Hi!

I'm trying to make a section in my map that includes a large nuclear reactor of some sort. The trick is to avoid shooting the reactor, as this results in total nuclear meltdown and vaporizing the player.

The concretical results of the script are explosions spawning around the reactor, earthquake and vision fading to green. The code is below.

script 36 (void)
{
radius_quake(5,30*35,0,2128,0);
fadeto(155,255,155,1.0,0.00000000000000001);
fadeto(155,255,155,0.5,15.0);
acs_execute(38,2); // The explosion spawning script that loops and damages the activator of the script regularly. 
The idea is to create a horrifying death, the activator mustn't survive a nuclear meltdown.
}
I also tried to make the script executable by monsters. This way the player would have to do everything he can to protect the reactors as the monsters can also shoot it. Otherwise this works beautifully, but when a monster activates the script the reqular activator damage and the vision fading don't affect the player. If being activated by a monster, the player can survive the reactor explosion.



Any thoughts on how to get around this and make all the effects of the script affect the player. regardless who fired the projectile to hit the reactor?

Share this post


Link to post

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
×