Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Obsidian

Assorted Scripting Questions.

Recommended Posts

I've been planning a little idea for a map where you have to sneak around the map with constant partial invisibility and beserk, but I have no idea what scripting to use. Can anyone help plz? I also need the PI to not wear off as well.

EDIT QUESTION: How do you recolour scripted marines? It's kind of boring having them all in grey.

Share this post


Link to post

For long-lasting power ups, you can simply use a very high duration:

ACTOR InfinitePartialInvisibility : BlurSphere
{
  PowerUp.Duration 0x7FFFFFFF // Lasts for about 2 years...
}
BlurSphere is the class name for the Partial Invisibility sphere.

Share this post


Link to post
Blue Shadow said:

For long-lasting power ups, you can simply use a very high duration:

ACTOR InfinitePartialInvisibility : BlurSphere
{
  PowerUp.Duration 0x7FFFFFFF // Lasts for about 2 years...
}
BlurSphere is the class name for the Partial Invisibility sphere.


Okay, thanks. Do you have an example lying around so I could see it in action please? :-)

While I'm at it, I'll put a few more questions in this thread.

Share this post


Link to post
Obsidian said:

Okay, thanks. Do you have an example lying around so I could see it in action please? :-)

Just copy the code above into a text file, save it as decorate.txt, drag and drop it onto zdoom.exe, start a new game, drop the console and type:

summon infinitepartialinvisibility

How do you recolour scripted marines

You can do that via ACS by using CreatTranslation and Thing_SetTranslation.

Share this post


Link to post

@Blue shadow I'm sort of trying to have the player in a mandatory constant state of invisibility, meaning that they're invisible from the get-go and can't get rid of it. I managed to get the beserk status using scripting, so is there a similar way for PI? BTW, I can't use XWE or SLADE seeing as they don't work properly on my clunker of a computer.

Share this post


Link to post
Obsidian said:

I managed to get the beserk status using scripting...

If by scripting, you mean ACS, then you can have a simple script like this one:

Script "Infinite Invisibility Giver" Enter
{
  GiveInventory("InfinitePartialInvisibility", 1);
}
Of course, you need that custom invisibility sphere DECORATE code, as well.

BTW, I can't use XWE or SLADE seeing as they don't work properly on my clunker of a computer.

Technically, you don't need to put the decorate.txt into a WAD to make work. You can just simply load it alongside your map when testing/playing.

There is also the choice of using zip/pk3, if you want.

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
Sign in to follow this  
×