Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2014 , 15:56   [Solved] traceline goes crazy (Hitboxes and things messed up somehow)
Reply With Quote #1

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!

Last edited by .Dare Devil.; 05-11-2014 at 16:42.
.Dare Devil. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2014 , 16:06   Re: traceline goes crazy (Hitboxes and things messed up somehow)
Reply With Quote #2

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.
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2014 , 16:10   Re: traceline goes crazy (Hitboxes and things messed up somehow)
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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.
.Dare Devil. is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-11-2014 , 16:40   Re: traceline goes crazy (Hitboxes and things messed up somehow)
Reply With Quote #4

You could give us the TraceLine hook function at least? Nobody will probably not help you without you providing any code.
klippy is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2014 , 16:41   Re: traceline goes crazy (Hitboxes and things messed up somehow)
Reply With Quote #5

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.
.Dare Devil. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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