Raised This Month: $12 Target: $400
 3% 

Laser Sight


Post New Thread Reply   
 
Thread Tools Display Modes
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-18-2007 , 20:17   Re: Laser Sight
Reply With Quote #11

It works for TFC, but I wouldn't recommend using it for it. It tends to draw like 10 lines and it lags the server.
M249-M4A1 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-18-2007 , 20:34   Re: Laser Sight
Reply With Quote #12

If you want the lasersight to actually come from the weapon, check out this thread: http://forums.alliedmods.net/showthread.php?t=53989
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-18-2007 , 21:32   Re: Laser Sight
Reply With Quote #13

Quote:
Originally Posted by XxAvalanchexX View Post
If you want the lasersight to actually come from the weapon, check out this thread: http://forums.alliedmods.net/showthread.php?t=53989
just about to suggest that.

to make it for the person only, instead of
Code:
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
use
Code:
	message_begin( MSG_ONE_UNRELIABLE,SVC_TEMPENTITY, _, id)
also, use pcvars.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-19-2007 , 00:54   Re: Laser Sight
Reply With Quote #14

Ok, Thx! Working on it!

-EDIT

Done!
This is great! No more lagg, I will never use cvars again!
__________________
I am 52% addicted to Counterstrike. What about you?

Last edited by Toster v2.1; 08-19-2007 at 02:16.
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-19-2007 , 05:01   Re: Laser Sight
Reply With Quote #15

line 29
Code:
	if(get_cvar_num("ls_teamcolors")>1)
Would suggest having the colors be filled into 1 cvar and then parsing it from that (just to cut down on the cvars). (That also is a poor way to register the cvars)

Get rid of ADMIN_KICK from register_cvar. That is the wrong type of flag. register_cvar does not work the same as register_concmd/register_clcmd.

You should save the weapons and the colors into globals, and recheck them every so often (suggesting a repeating task every minute), that way you won't have to change maps. (This also cuts down on prethink having too many things in it)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-20-2007 , 15:59   Re: Laser Sight
Reply With Quote #16

Thx! Updated!
__________________
I am 52% addicted to Counterstrike. What about you?
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 08-23-2007 , 23:44   Re: Laser Sight
Reply With Quote #17

Woot!
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-24-2007 , 03:19   Re: Laser Sight
Reply With Quote #18

Woot = ?????
__________________
I am 52% addicted to Counterstrike. What about you?
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
ainur
Member
Join Date: Mar 2007
Old 08-24-2007 , 03:21   Re: Laser Sight
Reply With Quote #19

nice

one more thing

the laser dosen't stay still,it's kind of flexible,it bends,when i move the weapon

can you make it to stay still?
__________________
ainur is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-24-2007 , 03:33   Re: Laser Sight
Reply With Quote #20

Sorry, no. Anyone up for testing? I have tested this on CS works 100%
(Only a little lagg with 25 players and more on aim maps)
__________________
I am 52% addicted to Counterstrike. What about you?
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
Reply


Thread Tools
Display Modes

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 04:35.


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