Raytracing triggers

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Raytracing triggers

Postby velocity » Wed Nov 24, 2021 10:37 am

Is it possible with the current implementation of gametrace for the ray to hit map triggers, e.g trigger_multiple?
User avatar
Articha
Member
Posts: 32
Joined: Tue Sep 21, 2021 12:13 pm
Location: Russia

Trace that hit triggers

Postby Articha » Wed Nov 24, 2021 1:59 pm

He is hitting triggers. At least in my code. May be deal in mins/maxs ?

Syntax: Select all

ray = Ray(player.eye_location, target_vector, player.mins, player.maxs)
engine_trace.trace_ray(ray, ContentMasks.ALL, TraceFilterSimple((player,)), trace)

With this code I tried to teleport, but something invisible (de_dust2, CT spawn -> Ramp-Long) blocks trace. It was trigger
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Raytracing triggers

Postby velocity » Wed Nov 24, 2021 6:42 pm

I have already tested before and it did not hit triggers.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 36 guests