few questions about editing

Discuss all aspects related to modding Zandronum here.
Post Reply
pop_ww
New User
Posts: 13
Joined: Sat Feb 14, 2015 7:21 pm

few questions about editing

#1

Post by pop_ww » Sun Feb 22, 2015 3:37 pm

Hi!

Can anyone tell me how to do these things or link me related wiki pages?

1) I want to make wad/pk3 that randomly changes spawned monsters like Master of Puppets where half chaingunners are green. Basically I want to copy MoP monsters and then also some monsters from shotgun frenzy and then have wad randomizing them like MoP does.

2) Is there way to detect if Master of Puppets is loaded? I want to make script that looks like this:

Code: Select all

if(not MoP loaded){
  Give player railgun
}
3) How to give players god mode for n seconds after they born?

User avatar
Kaminsky
Developer
Posts: 204
Joined: Sun Apr 14, 2013 7:17 pm
Location: Canada

RE: few questions about editing

#2

Post by Kaminsky » Sun Feb 22, 2015 5:02 pm

1) If you want to randomize the spawning of various monsters or entities, you can look at creating a RandomSpawner.

2) It won't be easy to detect what .wad(s) are currently loaded using ACS. You might have a better chance of creating a server-side script that is run upon creating a server.

3) You can create a script that enables invulnerability to a player temporarily as soon as they respawn (or enter a game).

[spoiler]SCRIPT 1 RESPAWN
{
SetPlayerProperty(0, 2, PROP_INVULNERABILITY);
Delay([insert desired length in "tics"]);
SetPlayerProperty(0, 0, PROP_INVULNERABILITY);
}[/spoiler]

pop_ww
New User
Posts: 13
Joined: Sat Feb 14, 2015 7:21 pm

RE: few questions about editing

#3

Post by pop_ww » Sun Feb 22, 2015 6:56 pm

Tnx.

1) I think I found code that I might want to test.

Code: Select all

actor ZombieMan2 : ZombieMan {}
actor ZombieReplacer : RandomSpawner replaces ZombieMan
{
    DropItem "ZombieMan2", 255, 3
    DropItem "ShotgunGuy", 255, 1
}
Where shall I put it? (I want it to be global, not for specific map)

2) MOP has some kind of demon who can possess other monsters, is there way to check using some hardcoded id and/or class name if it's defined, and if it is then assume that it's MOP?

3) Where do I put your script if I want it to be global? It would be annoying to copy it to every 30 MAP in doom builder.

Basically what I want to do is to create separate wad of 1 and 3 so that I could play any maps with these modifications just by loading this wad with others.

User avatar
Kaminsky
Developer
Posts: 204
Joined: Sun Apr 14, 2013 7:17 pm
Location: Canada

RE: few questions about editing

#4

Post by Kaminsky » Sun Feb 22, 2015 8:18 pm

pop_ww wrote: Where do I put your script if I want it to be global? It would be annoying to copy it to every 30 MAP in doom builder.

Basically what I want to do is to create separate wad of 1 and 3 so that I could play any maps with these modifications just by loading this wad with others.
You can create an ACS Script file and place it within your .wad/.pk3 file. You must then create a LOADACS lump into the same file that loads the corresponding file's name. However, you may need to import the script onto every map if necessary.

If you want your RandomSpawner to work, you can place the code into the DECORATE lump.
Last edited by Kaminsky on Sun Feb 22, 2015 8:19 pm, edited 1 time in total.

Post Reply