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

Custom Flashlight v0.5.4 (10/20/09)


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-27-2012 , 12:17   Re: Custom Flashlight v0.5.4 (10/20/09)
Reply With Quote #121

This plugin doesn't support ZP, ZP has his own flashlight system.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
talibana
Member
Join Date: Oct 2008
Location: United Kingdom
Old 03-29-2014 , 06:09   Re: Custom Flashlight v0.5.4 (10/20/09)
Reply With Quote #122

how change to work only for admin with custom flags ?
talibana is offline
Evgeniy
New Member
Join Date: Apr 2014
Old 04-18-2014 , 10:20   Re: Custom Flashlight v0.5.4 (10/20/09)
Reply With Quote #123

I like it very much!
I made some changes, just for fun, added second light, it will appear in players position just to light up his model.
There's some new commands u can use (with flashlight_set):

sl_enable 1 - second light switch
sl_radius 10 - don't make it too big coz it's a PVS message
sl_offset 40 - offset to direction player look in
sl_decay 10 - supposed to smooth corners of the light
sl_colshift 0 - bitwise shit for color, just to make it darker

maxradius 16 - radius of the first light at max distance (now it depends of the distance)
timerate 0.02 - just a timeout thing for performance, set it to 0 to turn it off
life 1 - was a #define, mb you'll want to change it since there's a timerate variable

Uncomment //#define ZOMBIE_PLAGUE if you want it to work with zp mod
Attached Thumbnails
Click image for larger version

Name:	cs_assault0000.jpg
Views:	629
Size:	67.9 KB
ID:	132787  
Attached Files
File Type: sma Get Plugin or Get Source (CustomFlashLight.sma - 939 views - 12.1 KB)
Evgeniy is offline
rockz27
New Member
Join Date: Mar 2017
Old 03-20-2017 , 10:09   Re: Custom Flashlight v0.5.4 (10/20/09)
Reply With Quote #124

Hello peepz,

I'm really confused where to add the CVARs' mentioned in the first post.. plugin seems to be working for me, but i can't access any of the CVARs' in-game and hence I can't mess around with the plugin settings.. I added these CVARs' to the amxx.cfg located in amxmodx\configs folder, but I don't seem to understand how it can be executed.. I know i'm doing something wrong here, but any help would be great !

edit: I do get 'flashlight_set' in console, but parameters after that don't appear.. should not the whole CVAR appear in console along with the default value, when I type in the first few characters of the CVAR ?

Last edited by rockz27; 03-20-2017 at 12:45. Reason: doubt cleared partly
rockz27 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 18:10.


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