Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT

Posts: 5595
Registered: 12-00 |
Thing_Hate is used in scripts like this
Thing_Hate (hater, hatee, type);
So to make monsters with tid 1, hate monsters with tid 2, hunt them down and ignore the player (see hate types below) you'd use
Thing_Hate (1, 2, 6);
Here's what Randy Heit said about the hate types...
I just got done enhancing Thing_Hate with a third parameter you can set like this:
0. Same behavior as before.
1. Monsters work like normal, except instead of looking for players, they look for monsters with the TID they're supposed to hate. They won't go after a monster unless they can see it first. After finishing off one monster, they look for more with the same TID. If they can't find any, they go back to sleep. They will ignore you unless you attack them, in which case they will target you like normal.
2. Same as 1, except they will chase after other monsters without needing to see them first.
3 - Hunt actors with given TID and also players
4 - Same as 3, but will go after monsters without seeing them first
5 - Hate actors with given TID and ignore player attacks
6 - Same as 5, but will go after enemies without seeing them first
There is another way to do coloured sector lighting without using a script. This is used to set coloured lighting at level startup, without needing to be activated by the player. I have no idea if you can then change the lighting colour later on. I suspect not.
This method seems to be little known, and I don't even think it is in the docs. However, if you make a basic Zdoom level with coloured lighting, and then convert it to a ZdoomHexen format level using Zwadconv, it uses this method, as can anyone who wants to use it directly for a Zdoomhexen map in their editor.
Make a line a type 190. This can be a single sided line facing into the sector you are changing. In fact, that is probably most convenient.
Tag the line to the sector you want the light to be different in.
Make the first arg of the line 1. I think this is needed to tell Zdoom you are affecting lighting. Randy said he couldn't remember for definite, but he thought other values might affect gravity instead.
Thats all you do to the line type - a type 190, tag whatever, arg1 1
Next edit your line. Instead of putting a texture name on the upper side def, use a HEX number of the colour of light you want in the format RRGGBB. So FF0000 would be red 00FF00 would be green, etc.
Once it's all set up, go play your level. All sectors tagged to the line will have coloured lighting of whatever colour you picked.
__________________
Meek
Last edited by Enjay on 02-17-03 at 20:24
|