Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Grant), 4,590 guests, and 15 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Geir, ondrej, mredit, vestriaa, Lukudo
19206 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shooting passable entities #397455
03/19/12 13:37
03/19/12 13:37
Joined: Feb 2007
Posts: 146
UK
robertbruce Offline OP
Member
robertbruce  Offline OP
Member

Joined: Feb 2007
Posts: 146
UK
Hello,

Does anyone have a working example of using c_trace with passable entities. I would like to create a ghost like game wheere you cab shoot the ghosts but obviously they can pass through objects.

ACTIVATE_SONAR does work to some extent but even when leaving out the ignore passable and passents I cannot get the trace to work.

would appreciate any help.

thanks,

Rob

Re: shooting passable entities [Re: robertbruce] #397463
03/19/12 14:33
03/19/12 14:33
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Happy Birthday Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Check if the c_trace hits something directly at the origin, such as the player or the (passable?) weapon.
If that didn't help, a simple solution would be to move the ghosts manually (manipulate their xyz-position) instead of using c_move. Alternatively, you could iterate over all (or just the ghost) entities and reset their passable flag, then c_trace and set it again.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: shooting passable entities [Re: Superku] #397800
03/23/12 16:58
03/23/12 16:58
Joined: Feb 2007
Posts: 146
UK
robertbruce Offline OP
Member
robertbruce  Offline OP
Member

Joined: Feb 2007
Posts: 146
UK
thanks, I've managed a workaround and have used your axis movement as well

Re: shooting passable entities [Re: robertbruce] #397847
03/24/12 07:32
03/24/12 07:32
Joined: Feb 2012
Posts: 3
K
kuro Offline
Guest
kuro  Offline
Guest
K

Joined: Feb 2012
Posts: 3


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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