Raised This Month: $100 Target: $400
 25% 

Laser Sight


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-16-2007 , 09:36   Laser Sight
Reply With Quote #1

I know there are other plugins like this, but mine should work with all mods
and its a bit more advanced.

Cvars:
*ls_enabled 1 - Toggle plugin
*ls_line 1 - If 0 it's a dot, if 1 - a line
*ls_pvis 0 - If 1 only you can see your laser
*ls_wpns "0;4;6;9;25;29;" - Weapon ID's that doesn't have a laser. After
changing this you must enter ls_refresh in console! (I attached a list of
CS weapon ID's)
*ls_rgb "255 0 0;" - Color of laser (red green blue) If you want different
team colors see example below. After changing this you must enter
ls_refresh in console!

List of RGB colors

Commands:
*ls_refresh - Refreshes weapons and rgb (ADMIN_KICK)
*ls_getteam - Gets your current team's id (ADMIN_KICK)
*ls_getwpn - Gets your current weapon's id (ADMIN_KICK)

Examples:

Code:
ls_rgb "255 0 0; 0 0 255;"
In CS T's would have red lasers,but CT's - blue

Code:
ls_wpns "0;4;6;9;25;29;"
In CS this removes laser from:
[no weapon], HE nade, C4, Smoke nade, flashbang & knife

Updates v0.3:
*Using PCvars (less lagg)
*Added cvar ls_pvis (see above) - Thx Emp`
*Laser now comes from gun - Thx XxAvalanchexX

Updates v0.4:
*RGB in one cvar
*Added clcmd ls_refresh (so you don't have to changelevel)

Updates v0.5:
*Added commands ls_getteam and ls_getwpn
Attached Thumbnails
Click image for larger version

Name:	0000.jpg
Views:	35795
Size:	54.3 KB
ID:	19278   Click image for larger version

Name:	both_red.JPG
Views:	25113
Size:	57.6 KB
ID:	19282  
Attached Files
File Type: sma Get Plugin or Get Source (lasers.sma - 11180 views - 3.2 KB)
File Type: txt CSwpnIDs.txt (293 Bytes, 4468 views)
__________________
I am 52% addicted to Counterstrike. What about you?

Last edited by Toster v2.1; 08-31-2007 at 12:24. Reason: Updates
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-16-2007 , 11:03   Re: Laser Sight
Reply With Quote #2

That's cool I like it!
M249-M4A1 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 11:06   Re: Laser Sight
Reply With Quote #3

Just a little suggestion i don't think i'd want to see all the other players laser points running around, it gives away your position. Make the laserpoint "player-view" so only the client can see his laserpoint and not the other players. Also, if you do take this into consideration maybe making it a CVAR.
X-Script is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-16-2007 , 11:12   Re: Laser Sight
Reply With Quote #4

I don't think thats possible... If you set ls_line to 0 its impossible to tell your position! It's just a dot.
__________________
I am 52% addicted to Counterstrike. What about you?

Last edited by Toster v2.1; 08-16-2007 at 11:15.
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-16-2007 , 11:17   Re: Laser Sight
Reply With Quote #5

It's possible if you make it a model and only precache the p_namehere.mdl then only the player can see it.

But I didn't see the ls_line command, so I guess your okay; my mistake.

Good plugin.
X-Script is offline
mordi
Senior Member
Join Date: Jul 2007
Location: o rly?
Old 08-17-2007 , 14:04   Re: Laser Sight
Reply With Quote #6

dont see the point with this plugin
__________________
Quote:
Originally Posted by Alka View Post
engine ?! 0o... *barf*
mordi is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-17-2007 , 15:35   Re: Laser Sight
Reply With Quote #7

Fun!
__________________
I am 52% addicted to Counterstrike. What about you?
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-17-2007 , 17:18   Re: Laser Sight
Reply With Quote #8

I'm sure I'll find some use for this, otherwise it can just add a dimension of challenge. Less trying to out-manouvre eachother and more actual combat =]

Great job, I just hope it works
__________________
Mod:
User:
BlackMilk is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-17-2007 , 19:05   Re: Laser Sight
Reply With Quote #9

A lot of plugins nowdays don't have a point, but it's just fun to have and see something different on a server. Good work, Toster.
M249-M4A1 is offline
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 08-18-2007 , 04:52   Re: Laser Sight
Reply With Quote #10

I found a point! Less campers!
Can someone give me some feedback? Does it work with all mods?
__________________
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 11:51.


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