AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   flashlight message (https://forums.alliedmods.net/showthread.php?t=16950)

Obbin 08-23-2005 12:47

flashlight message
 
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

XxAvalanchexX 08-23-2005 16:27

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.

Obbin 08-23-2005 16:35

isn't it possible to make an new flashlight function?
just show an light on the ground/wall where the user is aiming!

XxAvalanchexX 08-23-2005 16:45

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.

Twilight Suzuka 08-23-2005 17:13

Yes it would be. Using a DLIGHT and a bit of code, you could easily recode the flashlight.

XxAvalanchexX 08-23-2005 18:48

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

http://forums.alliedmods.net/showthread.php?t=16963

DahVid 08-23-2005 19:11

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! :)

Obbin 08-24-2005 15:23

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!)


All times are GMT -4. The time now is 14:22.

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