Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, dr_panther, Ayumi, Quad, AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Passable WED blocks #403707
06/25/12 07:47
06/25/12 07:47
Joined: Oct 2007
Posts: 13
Essex, England, UK
tthorpe88 Offline OP
Newbie
tthorpe88  Offline OP
Newbie

Joined: Oct 2007
Posts: 13
Essex, England, UK
Hi everyone,

I might be being really thick but can you make an WED block that is passable to an entity using c_move without making all the WED blocks in the level passable.

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 Offline

X
rayp  Offline

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
Code:
//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)

Code:
..
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: rayp] #403709
06/25/12 08:16
06/25/12 08:16
Joined: Oct 2007
Posts: 13
Essex, England, UK
tthorpe88 Offline OP
Newbie
tthorpe88  Offline OP
Newbie

Joined: Oct 2007
Posts: 13
Essex, England, UK
Okay thanks rayp.

I will check my code again because I thought I tried setting the block to passable and using IGNORE_PASSABLE.

Re: Passable WED blocks [Re: tthorpe88] #403719
06/25/12 13:11
06/25/12 13:11
Joined: Oct 2007
Posts: 13
Essex, England, UK
tthorpe88 Offline OP
Newbie
tthorpe88  Offline OP
Newbie

Joined: Oct 2007
Posts: 13
Essex, England, UK
Hi rayp,

I tried setting the block in WED to passable and using IGNORE_PASSABLE but collisions are still detected. Are passable WED blocks actually possible?

Do I have to create each block I want to be passable as an entity?

Re: Passable WED blocks [Re: tthorpe88] #403722
06/25/12 14:24
06/25/12 14:24
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Well try with ignore_content instead of ignore_passable. If this wont work too, try to build the blocks as map entity, then ignore_passable MUST work.


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: rayp] #403764
06/25/12 19:45
06/25/12 19:45
Joined: Oct 2007
Posts: 13
Essex, England, UK
tthorpe88 Offline OP
Newbie
tthorpe88  Offline OP
Newbie

Joined: Oct 2007
Posts: 13
Essex, England, UK
Never mind laugh

Tom

Last edited by tthorpe88; 06/25/12 20:19. Reason: Answered own question
Re: Passable WED blocks [Re: tthorpe88] #403776
06/25/12 20:56
06/25/12 20:56
Joined: Oct 2007
Posts: 13
Essex, England, UK
tthorpe88 Offline OP
Newbie
tthorpe88  Offline OP
Newbie

Joined: Oct 2007
Posts: 13
Essex, England, UK
Hi rayp,

It would seem that WED blocks don't support the passable flag, but like you said making them as map entities works fine with IGNORE_PASSABLE.

Thanks for you help.

Tom

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 Offline

X
rayp  Offline

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.
Quote:

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 grin uncheck in build props of your map "create mesh". Now ignore_passable will work with passable blocks, trust me grin
Why...i dont have a clue grin

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;

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1