1 registered members (AbrahamR),
717
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Passable WED blocks
[Re: tthorpe88]
#403708
06/25/12 07:54
06/25/12 07:54
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Choose the block and set its passable flag. In combination with ignore_passable, this already works. If u want it passable for only some special entitys, u can build the block as map entity setting this action fex
//skill1 PassableGroup 1
action Passable_Block()
{
my.group = my.skill1;
}
using this c_move with c_ignore will let the entity through the block (and all passable-things)
..
c_ignore(1,0); //ignore our block(s)
c_move(me, vector(5*time_step,0,0), nullvector, IGNORE_PASSABLE); //set ignore_passable for other passable ents to pass
..
Note: Remove ignore_passable if the entity only should go through our "special" blocks not through all passable entitys Edit: Not sure right now (cause iam not at home) if c_ignore needs IGNORE_PUSH flag set. Just try it.
Last edited by rayp; 06/25/12 08:02.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: Passable WED blocks
[Re: tthorpe88]
#403801
06/26/12 14:12
06/26/12 14:12
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Well your welcome. Edit: Just tryed it, your right. ignore_passable does not work with passable blocks. This is strange. IGNORE_PASSABLE
Ignores all passable blocks and entities.
EDIT: I know whats up here. You set the level to create mesh. This means your blocks arent blocks. Theyre models. lol. just tested it, cause it did not work for me too uncheck in build props of your map "create mesh". Now ignore_passable will work with passable blocks, trust me Why...i dont have a clue
Last edited by rayp; 06/26/12 15:08.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|