AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Increase Tracer Width (https://forums.alliedmods.net/showthread.php?t=48176)

Wilson [29th ID] 12-06-2006 16:50

Increase Tracer Width
 
For lack of a better description, I'm trying to "increase the width of a tracer."

To make it easier to hit a target with a weapon. I've figured out how to make weapons more accurate, but some weapons allow you to shoot slightly to the left or right for example and it still hits the hitboxes. I'd like to know how to create something like that.

Logically, it's as if the bullet were larger in diameter (or tracer, in diameter). And I'm wondering how to accomplish that or if that's not possible, how can it be easier to hit the target like with some weapons?

The Specialist 12-06-2006 16:55

Re: Increase Tracer Width
 
well TE_TRACER doesnt have a line width paramter but this does
Code:
/*  TE_BEAM_FOLLOW  */ stock beam_follow(index,sprite,life,width,red,green,blue,bright) {  message_begin(MSG_BROADCAST, SVC_TEMPENTITY);  write_byte(22);  write_short(index);         // entity to folloe  write_short(sprite);      // sprite index  write_byte(life);              // life  write_byte(width);                     // linde width  write_byte(red);                // red  write_byte(green);                // green  write_byte(blue);                // blue  write_byte(bright);               // brightness  message_end(); }

Wilson [29th ID] 12-06-2006 17:20

Re: Increase Tracer Width
 
But is there a way to replace a normal tracer with something like that? To make that do damage to a player? Or is that just a way to create a temporary line?

The Specialist 12-06-2006 17:25

Re: Increase Tracer Width
 
no , the follow uses a spite that follwos the bullet like a tracer would , its an entity , so you can use register_touch to do damage, add effects , anything you want . :wink: I wrote a tutorial on this also , you can look at my "Bullet Glow Effect" plugin , or knekters "Bullet Time " or twilight Sazukas originol "bullet time"

p3tsin 12-08-2006 03:37

Re: Increase Tracer Width
 
Quote:

Originally Posted by Wilson [29th ID] (Post 411571)
For lack of a better description, I'm trying to "increase the width of a tracer."

To make it easier to hit a target with a weapon. I've figured out how to make weapons more accurate, but some weapons allow you to shoot slightly to the left or right for example and it still hits the hitboxes. I'd like to know how to create something like that.

Logically, it's as if the bullet were larger in diameter (or tracer, in diameter). And I'm wondering how to accomplish that or if that's not possible, how can it be easier to hit the target like with some weapons?

im afraid theres no way to increase their width.
u could just hook traceline, do some of ur own traces and return the player index if they hit anything...
but i dont know if its worth it since theyre a bit expensive to cpu :?

VEN 12-08-2006 04:36

Re: Increase Tracer Width
 
TraceCylinder function would be good that. :]


All times are GMT -4. The time now is 06:50.

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