[DiscordArchive] what do you do to make a quest complete when go...
[DiscordArchive] what do you do to make a quest complete when go...
Archived author: Titi • Posted: 2024-10-30T21:06:05.603000+00:00
Original source
well yep, so server calculation only happens once, it's much more efficient.
Archived author: stoneharry • Posted: 2024-10-30T21:14:35.556000+00:00
Original source
you don't actually need to extract maps again to update an area trigger
Archived author: Crow • Posted: 2024-10-31T00:03:28.693000+00:00
Original source
Yeah that's why I overrode an existing one for my custom quest, I didn't wanna make a new one
Archived author: stoneharry • Posted: 2024-10-31T08:43:50.838000+00:00
Original source
You don't need to generate for a new one
Archived author: Crow • Posted: 2024-10-31T21:08:14.378000+00:00
Original source
wait wut
Archived author: Titi • Posted: 2024-10-31T21:30:16.713000+00:00
Original source
extracted server maps contain all the complex geometry of terrain, and models : walls, objects etc.
To check if a player is within an area trigger (which is a sphere or a box) you don't need **any **of the terrain's data, it's a simple math calculation of 3d points which works just using the sphere radius or the areatrigger box corners.
Example with chatgpt python code to check if a position (player's) if within a 3d box or sphere
*(it's slightly more complicated for an oriented box)*
`def is_point_in_box(point, box_min, box_max):
"""
Check if a 3D point is within an axis-aligned 3D box.
x, y, z = point
x_min, y_min, z_min = box_min
x_max, y_max, z_max = box_max
return (x_min <= x <= x_max) and (y_min <= y <= y_max) and (z_min <= z <= z_max)`
`def is_point_in_sphere(point, sphere_center, sphere_radius):
x, y, z = point
cx, cy, cz = sphere_center
distance_squared = (x - cx)**2 + (y - cy)**2 + (z - cz)**2
return distance_squared <= sphere_radius**2`
Archived author: Crow • Posted: 2024-11-01T17:08:00.320000+00:00
Original source
I thought you did because you do need that for areatriggers that teleport you. or am I wrong again?
Archived author: stoneharry • Posted: 2024-11-01T17:22:42.281000+00:00
Original source
I think I have said that in the past, but I was mistaken.
Archived author: stoneharry • Posted: 2024-11-01T17:23:29.476000+00:00
Original source
The dbc has a fixed order. That's the only bit that might catch you out. Created quite a few area triggers recently
Archived author: Crow • Posted: 2024-11-02T20:43:24.175000+00:00
Original source
and you didnt have to extract maps for the new ones? just kept the dbcs in appropriate order?