Raised This Month: $ Target: $400
 0% 

flashlight message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-23-2005 , 12:47   flashlight message
Reply With Quote #1

I don't know how to use messages but i want to make an flashligth plugin!
Don't say i should use the old one built--in in cs cause i want to make an bigger light circle width brighter light!

how to do?
a alls want to know how to jump over the "choose team screen" and put everybody into ct team and how to "get the nuber of" mp_freezetime
__________________
Sig(h)!
Obbin is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 16:27  
Reply With Quote #2

The only thing the flashlight message does is update the flashlight icon in the corner of your screen. This is how to turn a player's flashlight on:

Code:
entity_set_int(id,EV_INT_effects,entity_get_int(id,EV_INT_effects) & EF_DIMLIGHT);

There isn't any way to change its color or make it brighter.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-23-2005 , 16:35  
Reply With Quote #3

isn't it possible to make an new flashlight function?
just show an light on the ground/wall where the user is aiming!
__________________
Sig(h)!
Obbin is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 16:45  
Reply With Quote #4

I guess you could create an entity, every frame update it's origin to where the player is aiming, and give it a dynamic glow, but the size of the glow wouldn't be controllable still.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-23-2005 , 17:13  
Reply With Quote #5

Yes it would be. Using a DLIGHT and a bit of code, you could easily recode the flashlight.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 18:48  
Reply With Quote #6

Okay, you were right, you were all right!...

http://forums.alliedmods.net/showthread.php?t=16963
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DahVid
Senior Member
Join Date: Jun 2005
Old 08-23-2005 , 19:11  
Reply With Quote #7

Quote:
Originally Posted by XxAvalanchexX
Okay, you were right, you were all right!...

http://forums.alliedmods.net/showthread.php?t=16963
I was going to code that! Oh well, no harm done eh? Your plugins are always 50 times better than mine anyways!
DahVid is offline
Obbin
Senior Member
Join Date: Mar 2005
Location: 192.168.1.3
Old 08-24-2005 , 15:23  
Reply With Quote #8

THX, i just love this!
I think i'll use this in my own hide and seek plugin (the seeker will not have nightvision so he needs an strong flashlight!)
__________________
Sig(h)!
Obbin 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 14:22.


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