Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → A few technical questions...
A few technical questions...
2004-08-11, 5:09 AM #1
Hi all, it's been a while since I have posted here. But when I have in the past, I've always pretty much found the answers that I was looking for, so I'm wondering if anyone can help me with any of the following things...

1: Is there an effective way to block NPCs?
I have an area in my Map where NPCs can be spawned by pushing a button, but I do not wish for these NPCs to leave the designated areas in which they were spawned. I have tried the "Block NPC" texture in the System set, but this does not work.

2: Is there a way to give entities a 'count' and number? Like NPCs can have a key of 'count' and a value of '-1' (for infinite "lives"), but I am wondering if the same can be done with things such as weapons?
For example I have a Jettpack Spawn in my map, and I want to add either a count to it, so it will only spawn a certain amout of times after it is picked up, or increase the delay time in which it respawns after someone pick it up, say - one will spawn every 20 minutes or so.

There are a couple of other things that were on my mind, but I seem to have forgotten them at the moment, typical, heheh. If I remember them, I'll reply.

I would really appreciate any help that anyone could provide concerning these things, and I thank you very much in advance if you can help. [http://forums.massassi.net/html/smile.gif]

- Virtue.
2004-08-11, 10:03 AM #2
Isn't there a shader in the "system" texture folder that blocks NPCs? Check there.

I have to get back on the items. I mean, don't weapons respawn on their own in MP?

------------------
Snail racing: (500 posts per line)

---------@%

The Massassi JO/JA Single Player contest info (or something of this matter. Just smile.)
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2004-08-11, 10:20 PM #3
Yes, they do, but I don't want everyone flying around with Jetpacks, I want one to spawn every 20-30 minutes or so.

I've tried that texture in the System set, but it doesn't work, unfortunatly, which is why I asked about it here. [http://forums.massassi.net/html/smile.gif]

- Virtue.
2004-08-19, 10:11 AM #4
Respawn timers for MP are handled in the file code/game/g_items.c. From the function Touch_Item:

// non zero wait overrides respawn time
if ( ent->wait ) {
respawn = ent->wait;
}

So, there's your answer. The key is "wait" (in seconds). This key should apply no matter what type of pickup it is (powerup, holdable item or weapon).

↑ Up to the top!