AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] traceline goes crazy (Hitboxes and things messed up somehow) (https://forums.alliedmods.net/showthread.php?t=240267)

.Dare Devil. 05-11-2014 15:56

[Solved] traceline goes crazy (Hitboxes and things messed up somehow)
 
Hi!

Do someone know what can cause tracelines act weird?
For example if that thing happen i cant shoot enemys ( I can but i cant hit them )
Traceline end origins are somewhere in random places where they are not supposed to be.

If this thing happen then it wont reset until i restart the game
( close the server and then start it again )

This thing seems to apply for everyone once it happens.


Ive given up debugging this because the mod itself is just so large.
Well at least i know when this is happening ( when one variable is true )
Yet this variable is used more than 200 times damn...

Maybe someone knows here what exacly cause it and i can find that and fix it.
Thank you Alliedmodders!

Arkshine 05-11-2014 16:06

Re: traceline goes crazy (Hitboxes and things messed up somehow)
 
What you're saying is quite vague. Not sure what you're expecting with that much informations, because basically you're just telling us "I have a problem" and that's all. But without context, only people with clairvoyance power can help.

Start to provide a concrete and simple test plugin to reproduce the trace line weird behavior.

.Dare Devil. 05-11-2014 16:10

Re: traceline goes crazy (Hitboxes and things messed up somehow)
 
Quote:

Originally Posted by Arkshine (Post 2136508)
What you're saying is quite vague. Not sure what you're expecting with that much informations, because basically you're just telling us "I have a problem" and that's all. But without context, only people with clairvoyance power can help.

Start to provide a concrete and simple test plugin to reproduce the trace line weird behavior.

The problem is that im writing really large plugin and sometimes i dont notice the bug and when i do its already too late.

I believe there is specific fucntion what will create this kind of problem if for example entity is invalid or something else is wrong in params.

klippy 05-11-2014 16:40

Re: traceline goes crazy (Hitboxes and things messed up somehow)
 
You could give us the TraceLine hook function at least? Nobody will probably not help you without you providing any code.

.Dare Devil. 05-11-2014 16:41

Re: traceline goes crazy (Hitboxes and things messed up somehow)
 
Problem solved. ( Finally yay! )

Quote:

When you have removed entity by remove_entity(ent) and then set that removed entity origin by
set_pev( ent, pev_origin, x ) you will get those weird traceline&hitbox problems.


All times are GMT -4. The time now is 09:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.