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

Subplugin Submission [ZP50] Midnight's Darkness (Update 1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 04-06-2013 , 10:50   [ZP50] Midnight's Darkness (Update 1.3)
Reply With Quote #1

[ZP50] Midnight's Darkness

Description :-
As the title partly suggests it Completely darkens the map for one round.... so much that u cant see a bit without flash lights. It uses the cvar zp_lighting and changes it to a

Team :-
Zombies

Credits :-
Me - 100% code + idea

Changelog :-
v1.0 - Release
v1.1 - Made a completely new code and fully updated.....
v1.2 - Added a cvar zp_midnight_duration [Idea by H.RED.ZONE]
v1.3 - Fixed the code , in the last one "zp_fw_items_select_post" wasnt called so it wont work.... fixed it now it will work ...

Cvars :-

zp_midnight_duration (Def - 0.0) (Its a float/decimal value so keep it in that form) (if value is set to 0.0 it will last all round)
Attached Files
File Type: sma Get Plugin or Get Source (zp50_extra_midnight.sma - 1543 views - 1.9 KB)

Last edited by Catastrophe; 01-21-2014 at 02:58.
Catastrophe is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 04-06-2013 , 10:59   Re: [ZP50] Midnight's Darkness
Reply With Quote #2

cool, thx for share...
wicho is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 04-06-2013 , 11:18   Re: [ZP50] Midnight's Darkness
Reply With Quote #3

welcome

Last edited by Catastrophe; 04-06-2013 at 11:18.
Catastrophe is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 12-27-2013 , 05:16   Re: [ZP50] Midnight's Darkness (Update 1.1)
Reply With Quote #4

Made a completely new code.... the old one wasn't worth using
__________________
You will find everything u need :-
Catastrophe is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-27-2013 , 09:22   Re: [ZP50] Midnight's Darkness (Update 1.1)
Reply With Quote #5

I have something similar just for 15 sec someone can use it maybe...
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_item_darkness.sma - 1145 views - 1.4 KB)
__________________

Last edited by H.RED.ZONE; 07-16-2014 at 14:42.
H.RED.ZONE is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 12-27-2013 , 09:44   Re: [ZP50] Midnight's Darkness (Update 1.1)
Reply With Quote #6

Dont u think b is a little bright ? and also the default lighting shud have a cvar..... u knw... not everyone has d as their default...
__________________
You will find everything u need :-
Catastrophe is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-27-2013 , 11:02   Re: [ZP50] Midnight's Darkness (Update 1.2)
Reply With Quote #7

It was meant only for the server i had so i don't need cvars i can edit my self >.>

And its not bright as much...it depends on the map light.
__________________
H.RED.ZONE is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 12-27-2013 , 11:42   Re: [ZP50] Midnight's Darkness (Update 1.2)
Reply With Quote #8

yes... i often use "b" when z starts to hurt my eyes .... but still theres like 100000% difference between b and a.... and actually a is the proper dark so....
__________________
You will find everything u need :-
Catastrophe is offline
LEO33
Member
Join Date: Jan 2014
Old 01-20-2014 , 16:25   Re: [ZP50] Midnight's Darkness (Update 1.3)
Reply With Quote #9

I get the error below when putting the duration time and the dark effect still stays for all the round. How to fix this? (I ain't programmer)
Code:
L 01/20/2014 - 22:19:52: Invalid CVAR pointer
L 01/20/2014 - 22:19:52: [AMXX] Displaying debug trace (plugin "zp50_extra_midnight.amxx")
L 01/20/2014 - 22:19:52: [AMXX] Run time error 10: native error (native "get_pcvar_float")
L 01/20/2014 - 22:19:52: [AMXX]    [0] zp50_extra_midnight.sma::emp_start (line 78)
EDIT: More errors during gameplay;
Code:
L 01/20/2014 - 23:08:41: [HAMSANDWICH] Function fw_PlayerKilled not found.
L 01/20/2014 - 23:08:41: [AMXX] Displaying debug trace (plugin "zp50_extra_midnight.amxx")
L 01/20/2014 - 23:08:41: [AMXX] Run time error 10: native error (native "RegisterHam")
L 01/20/2014 - 23:08:41: [AMXX]    [0] zp50_extra_midnight.sma::plugin_init (line 17)

Last edited by LEO33; 01-20-2014 at 17:15.
LEO33 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-21-2014 , 02:58   Re: [ZP50] Midnight's Darkness (Update 1.3)
Reply With Quote #10

Fixed get the code from the first post again .... and thnx for reporting this ;)
__________________
You will find everything u need :-
Catastrophe 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 07:50.


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