Custom Flashlight v0.5.4 (10/20/09)
10 Attachment(s)
Custom Flashlight |
Re: Custom Flashlight (New)
Just tested, and works great! Gj :mrgreen:
|
Re: Custom Flashlight (New)
wow , something new . =)
|
Re: Custom Flashlight (New)
Will this work with zombie infection ? :)
|
Re: Custom Flashlight (New)
Why You don't try ?
|
Re: Custom Flashlight (New)
Because i have Sparta mod server the plugin is for one friend :D
|
Re: Custom Flashlight (New)
Quote:
|
Re: Custom Flashlight (New)
Good Job, this plugin doesn't seem to lag me in my server.
|
Re: Custom Flashlight (New)
Players can have low fps if you set radius too high.
|
Re: Custom Flashlight (New)
I donīt have any problem with FPS.
|
Re: Custom Flashlight (New)
Very nice...gj:up:
|
Re: Custom Flashlight (New)
I loved the original, nice job. I like the new features.
|
Re: Custom Flashlight (New)
i found a bug..or its supposed to be like that..(DONT THINK SO :P)
it will only light in the Shadows and Dark Places Here i light the Ground: Nothing Happens. http://img227.**************/img227/5...st20000an1.jpg Here i light Dark Spot: and it does Light It. http://img519.**************/img519/6...st20001ms3.jpg |
Re: Custom Flashlight (New)
Quote:
|
Re: Custom Flashlight (New)
well then thats stupid...on dark Maps..with custom lights? like in zombie mod...that wouldnt be effective(?).
|
Re: Custom Flashlight (New)
That's the purpose of a light, make you see in dark places.
|
Re: Custom Flashlight (New)
oh my god! thats what im talking about !! :D at last, this is so good, i was waiting for this, big + for you man ^^
works very well but i have one question, with normal flashlight i can hook when someone have turned on or off flashlight by using pev_effects, when 8 is on, 0 off, what is the value in this plugin when flashlight is on / off ? |
Re: Custom Flashlight (New)
Hook Flashlight event :
PHP Code:
|
Re: Custom Flashlight (New)
if i could i would give you 1000 karma for this ^^ event of course working ;]
anyway flashlight_show_all is better to turn 1, more realistic ;] i think we have one small problem, this plugin doesnt work with forward client_impulse, i mean with this plugin on we cant block anyway impulse 100 any suggestions ? |
Re: Custom Flashlight (New)
Quote:
Quote:
Quote:
|
Re: Custom Flashlight (New)
ahh i understand it now ^^ :P
;* friend kiss haha xD |
Re: Custom Flashlight (New)
Interesting one. Pity i have no time to play with amx/x more.
I suggest converting flashlight_drainfreq & flashlight_chargefreq into cvars called e.g. flashlight_deplete_secs & flashlight_fullcharge_secs (if possible of course) which will stand for number of seconds fully charged flashlight can emit light until is depleted & number of secs an exhausted flashlight have to be charged respectively. This is more user-friendly. Also you can optimize calculations within Make_FlashLight(id) (looks like it can be called rather often): iAttn = 256 + iDecay * get_pcvar_num(g_pcvarFlashAttn) // barney/dontaskme --> fTemp = 256 / (256 + iDecay * get_pcvar_num(g_pcvarFlashAttn)) ... write_byte((g_iColor[id][Red] * fTemp) Also this one Code:
Again, pity i could not test it in-game. As i remember Avalanche's plugin did not feed my needs in conjunction with Blinding Flashlight. |
Re: Custom Flashlight (New)
Thanks for suggestions.
I've changed cvars and #define thing. I'm still confused on what is better for the attenuation thing as you may have missed that i need to have an integer/byte, so if i use floats i need to round them. So what is optimized : Code:
or Code:
?? |
Re: Custom Flashlight (New)
I still preferred the first one, obviously call triple floatround is not wise here. but I don't know if the pawn compiler has optimization about multiplying like this: (my guess is yes)
somevalue * 256 => somevalue<<8 also arrayset nonzero value is not so fast as your imagination. so just set a loop |
Re: Custom Flashlight (New)
Updated to v0.3.0, thanks to both of you :)
|
Re: Custom Flashlight (New)
Not bad. ;) Karma.
|
Re: Custom Flashlight (New)
theres a bug in your plugin i'm not sure your aware of.
Lets say my server is running Biohazard, and its also running this plugin. If a human has the flashlight on when he gets infected, the zombie can't turn off the light, it always stays on. |
Re: Custom Flashlight (New)
This is related to Biohazard plugin, ask author for modifications if you want, i can't do nothing about it.
-edit- If Zombies are in fact terrorists, you can set per team color and T color to 000000000. |
Re: Custom Flashlight (New)
Nice Job Connorr , +karma :up:
|
Re: Custom Flashlight (New)
Quote:
|
Re: Custom Flashlight (New)
Verry nice plugin! Must be aproved! :)
|
Re: Custom Flashlight (New)
Yeah should be approved!
But how do i make it unlimited? no drain? |
Re: Custom Flashlight (New)
flashlight_fulldrain_time 0
|
Re: Custom Flashlight (New)
i said before that i love this plugin but found a bug ;/
bug only with mp_flashlight 1 but without it i dont see flashlight drain when i have mp_flashlight on 1 to see how much battery i have left, when turn on customflashlight, die, and before respawn click 1 time "f" (impulse 100) on spawn normal flashlight is turning ON to me ;/ and dont turn off alone, i can normal shut off and turn on customflashlight but the normal flashlight stay ;/ |
Re: Custom Flashlight v0.3.1 (06/29/08)
Ty for the feed back, fixed in v0.3.1
|
Re: Custom Flashlight v0.3.1 (06/29/08)
Very Nice !! Good Job
|
Re: Custom Flashlight v0.3.1 (06/29/08)
yea!!! working excellent
i dunno 1 thing, why it isnt approved yet? im confirming, its WORKING in 100% good now ^^ |
Re: Custom Flashlight v0.3.1 (06/29/08)
Found a small glitch.
When your flashlight is still on. I set flashlight_custom to 0. The custom flashlight is still there and I can use the default CS flashlight. It only goes away once I die or when the round is over. Other than that. This plugin rocks!! |
Re: Custom Flashlight v0.4.0 (07/30/08)
Updated to v0.4.0
- changed cvars into commands - now fully supports per maps/prefixes configs. |
Re: Custom Flashlight v0.4.0 (07/30/08)
Great plugin, will use this idea for my KZ plugin (will not copy your code,don't worry).
+karma |
All times are GMT -4. The time now is 10:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.