Engine traceline?
Moderator: InsideQC Admins
23 posts
• Page 2 of 2 • 1, 2
frag.machine wrote:Mexicouger wrote:Spike wrote:Mexicouger wrote:So I thought If I just did it in The engine, I might save some memory strains. And the function is to make the crosshairs turn red. when the traceline hits something that takes damage, the crosshair turns red.
Thing is though, traceline *is* in the engine. Its a builtin... Meaning its built in to the engine.
do a traceline, check trace_ent.takedamage. easy!
Thing is, I have nowhere to put it but playerprethink, Which I hate clogging that up. My intention was to maybe move it to the engine for a speed increase
*sigh*
Shoving bad code into the engine won't make things magically works.![]()
traceline is already as optmized as it can be. If your QC code is slowing things down, maybe you should first consider that your code is the culprit. What exactly are you trying to do ?
It's not what I am trying to do. I have already done it, but I am not satisfied with the fps slowdown. This one features slows the game down like 4-5 frames, But it is needed. I tried spawning an entity that keeps track of your tracelines, And it refreshed ever 0.01 seconds, But if you were a distance away, then the Crosshair would keep flashing(Due to quick refresh). If you have any other way, I am curious to see it.
-

Mexicouger - Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
Downsider wrote:Did you completely fail to read any of the replies in this thread?
I have read every single one of them, Including yours.
-

Mexicouger - Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
Guys, guys, I was just checking to do an engine traceline, that is all. I have my responses, now don't make responses like Downsider. I used the method of checking every 0.1 seconds. It works decently.
Thanks for your responses.
Thanks for your responses.
-

Mexicouger - Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
Mexicouger wrote:Guys, guys, I was just checking to do an engine traceline, that is all. I have my responses, now don't make responses like Downsider. I used the method of checking every 0.1 seconds. It works decently.
Thanks for your responses.
Are you trying to make a laser sight or something like that ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
No, I am just making the crosshairs turn red so the player gets a cue on when it's a good time to shoot. The reticules changing really helps.
-

Mexicouger - Posts: 514
- Joined: Sat May 01, 2010 10:12 pm
23 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest
