AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP50] Midnight's Darkness (Update 1.3) (https://forums.alliedmods.net/showthread.php?t=212740)

Catastrophe 04-06-2013 10:50

[ZP50] Midnight's Darkness (Update 1.3)
 
1 Attachment(s)
[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)

wicho 04-06-2013 10:59

Re: [ZP50] Midnight's Darkness
 
cool, thx for share...

Catastrophe 04-06-2013 11:18

Re: [ZP50] Midnight's Darkness
 
welcome :P

Catastrophe 12-27-2013 05:16

Re: [ZP50] Midnight's Darkness (Update 1.1)
 
Made a completely new code.... the old one wasn't worth using :P

H.RED.ZONE 12-27-2013 09:22

Re: [ZP50] Midnight's Darkness (Update 1.1)
 
1 Attachment(s)
I have something similar just for 15 sec someone can use it maybe...
Spoiler

Catastrophe 12-27-2013 09:44

Re: [ZP50] Midnight's Darkness (Update 1.1)
 
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... :D

H.RED.ZONE 12-27-2013 11:02

Re: [ZP50] Midnight's Darkness (Update 1.2)
 
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.

Catastrophe 12-27-2013 11:42

Re: [ZP50] Midnight's Darkness (Update 1.2)
 
yes... i often use "b" when z starts to hurt my eyes :P .... but still theres like 100000% difference between b and a.... and actually a is the proper dark so.... :P

LEO33 01-20-2014 16:25

Re: [ZP50] Midnight's Darkness (Update 1.3)
 
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)


Catastrophe 01-21-2014 02:58

Re: [ZP50] Midnight's Darkness (Update 1.3)
 
Fixed get the code from the first post again .... and thnx for reporting this ;)


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

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