AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   [CSO] Hidden Mod(Update v3.5-3/10/13) (https://forums.alliedmods.net/showthread.php?t=214947)

oxygen935 05-01-2013 17:23

[CSO] Hidden Mod(Update v3.5-3/10/13)
 
3 Attachment(s)
-=Description=-

Hey guys! This is my first mod! i take the idea from cso. This hidden mod is a match mod where Humans Must Kill Jokers. Jokers have more speed/ap/hp/lower gravity(all of them controlled by cvar).
Changing Teams: When a Human Kills a Joker, the joker is moving on human team and the killer human is moving on joker team.
Unlock Mod:The unlock mod is a property of guns/knifes menu at the human Spawn. The human needs some money(can be changed on .cfg file) to unlock m4a1 and some guns/Knifes. Also he has some free options so he don't need money for them. If the human unlock 1 gun, this gun will be unlocked until the map change.
New Update 3.0:The Joker will start being full invisible but after x seconds(customized by cvar) he will be full visible. BUT If a joker kills a human he will be full invisible and the timer will start again...

-=Video=-


New Video for 3.5 Version!



-=Available Commands=-


say/say_team:

/hidden - open the main hidden mod menu!
/guns - open guns menu(it's more specified)
/shop - open the shop
/fixspawn - fix the bug with spawn(you will be respawned)

-=Requirements For Installation=-


Also Install Infinite Round by Arkshine

-=Installing the plugin=-


1)Download the cso_hidden_res_v3.5.zip(scoll down) file and copy all the files on your server.
2)put the hiddenmod.cfg on your amxmodx/configs directory.
3)Download AND COMPILE LOCKALLY OR PRESS GET PLUGIN the sma.
4)Move your compiled amxx file to your server and write the plugin name on your plugins.ini.

-=Plugin Suggestions=-

-Hud Customizer

-=Cvars=-
Code:

///////////////////////////////////////////////////////
///////  Hidden Mod Configuration File  ///////
///////////////////////////////////////////////////////

//JOKER FEATURES
hm_joker_hp "500"
hm_joker_armor "600"
hm_joker_speed "500.0"
hm_joker_gravity "0.45"
hm_new_invisibility_system "1" //Enable(1)/Disable(0) The new system for joker(he lose invisibility every second)
hm_joker_seconds_to_be_full_invisible "60" //Use this if "hm_new_invisibility_system" cvar is 1
hm_joker_invisibility "30" //Set the percent invisibility of joker if "hm_new_invisibility_system" cvar is 0
hm_joker_silent_steps "1" //Enable(1)/Disable(0) Silent steps

//HUMAN FEATURES
hm_human_hp "120"
hm_human_armor "100"
hm_hmuan_speed "250.0"
hm_human_gravity "1.0"
hm_human_silent_steps "0" //Enable(1)/Disable(0) Silent steps

//SHOP FEATURES
hm_shop "1" //Enable(1)/disable(0) shop

//Humans Shop
hm_shop_hp_ammout "255"
hm_shop_gravity_ammount "0.6"
hm_shop_armor_ammount "200"
hm_shop_max_jumps "2" //max jumps for multijump on shop(both max jumps for jokers & humans)
hm_shop_speed_ammount "450.0"
hm_shop_hp_cost "4000"
hm_shop_gravity_cost "7000"
hm_shop_armor_cost "5000"
hm_shop_speed_cost "8000"
hm_shop_multijump_cost "8000"
hm_shop_ak_and_m4_cost "9000"
hm_shop_double_damage_cost "10000"

//Jokers Shop
hm_shop_hp_joker_ammount "600"
hm_shop_hp_joker_cost "5000"
hm_shop_multijump_joker_cost "10000"
hm_shop_double_damage_joker_cost "13000"


//KNIFES
hm_knife_hp_add "50"
hm_knife_gravity_combat "0.7"
hm_knife_gravity_default "0.8"
hm_knife_speed "350.0"
hm_knife_damage_multi "1.5"
hm_vip_knife "1" //enable(1)/disable(0) to use the hammer knife only vip members


//UNLOCK MOD FOR SHOP
hm_unlock_system "1" //enable(1) / disable(0) the unlock mod
hm_unlock_m4a1 "8000"
hm_unlock_ak47 "8000"
hm_unlock_galil "6000"
hm_unlock_awp "7000"
hm_unlock_p90 "10000"
hm_unlock_deagle "5000"
hm_unlock_dualelites "4000"
hm_unlock_axe_knife "3000"
hm_unlock_strong_knife "3500"
hm_unlock_combat_knife "3500"


//EFFECTS
hm_weather_effects "3" //Disable(0), ScreenShake(1), Fadescreen(2), Both(3)
hm_hudmessages "1" //Enable(1)/Disable(0) The Kill Hud messages & also the hud bar
hm_enable_fog "1" //Enable(1)/Disable(0) Fog
hm_fog_red_color "255"
hm_fog_green_color "255"
hm_fog_blue_color "255"
hm_fog_density "1"


//COUNTDOWN TIME
hm_countdown_time "5"

-=Credits=-


-Kia|For when joker is freeze to be invisible
-ConnorMcLeod|For his screenfade & screenshake stocks|Remove Shadow
-ROOT|For his TeamManager
-Hlias|Support And Help
-All the testers of the plugin! xD

-=Changelog=-
Code:

*v1.0
-Added New custom sounds for joker's knife
-Added Custom models for jokers/humans and knifes
-Custom Shop for both teams
*v1.1
-Added Custom Days System
-Added Custom lights for each day
*v1.3
-Added more sounds(like when joker dies) from cso
*v1.4
-Added Some effects when someone kills a human/joker
*v2.0
-Added When joker is freeze to be invisible
-Added Aura on humans
-Added Custom Knife Classes
-Added 3 Human Models
-Added 1 Vip Model
-More i don't remember everything...
*v2.1
-Bug Fixes...
*v2.1.1(STABLE)
-more bugs fixed, optimisation code
*v2.3(BETA)
-Fixed bugs with speed
-Remove Changing Description Name
-Optimisation Code
-Added Unlock Mod On Shop
*v2.4
-Change Joker speed/hp per day
-Added more cvars
-Fixed some bugs which cause lag.
*v2.5
-Fixed bugs with sounds
-Removed Aura(useless)
-Removed Days System(useless)
-Made the gameplay exactly like in cso
 -Added Respawn
 -Only 1 Joker
-more...
*v2.6
-Fixed Bug with suicide
-Fixed Bug with guns(reopen if locked)
-Added cvar for weather effects(earthquake etc...)
-Added cvar for countdown time
-Fix Some other bugs...
*v2.6b
-Deleted human models(as requested)
-added countdown(thanks to m4m3ts)
*v2.7
-Bug fixes
*v2.8
-No need compile lockally
*v2.9
-optimise code
-fixed invisibility(when no move)
-remove some forgotten things
*v3.0
-Another Way to be Invisible(read description)
-Removed Shadow/Thanks to ConnorMcLeod
*v3.1
-Added Fix command for spawn bug
*v3.2
-Added More Cvars For Easy handle For users who don't want some things
*v3.5
-Finally Fixed The Joker's Knife
-Optimize The Team Select & Changing to a different way(The 1st will be joker, the others cts)
-If the joker will disconnect a random ct will take his place
-Optimize code to be more efficient
-More...


-TO DO LIST:

-Change HP/Speed in each day(DONE!)
-Unlock Mod (DONE!)
-The joker every second he will loose the 5% of his ivisibility, if he kill a human will be full invisible again(like in cso)(DONE!)
-Add Remeber and last option on guns menu
-More Options On shop
-New Style Of shop(you will see what i mean :P)
-If you want post a suggestion!!! :D :D

NOTE:
Everything changed! Update to 3.5 version!

Download Count
700+

roymor 05-01-2013 17:29

Re: [CSO] Hidden-Mod - By OxYgEn
 
Nice job although it was made already the same mod I saw it while I was playing with dias but again good job anyway :)

oxygen935 05-01-2013 17:43

Re: [CSO] Hidden-Mod - By OxYgEn
 
I knew it man... As i told original idea is from dias... I just love hidden mod so firstly i decided to make it for myself... But then i published it...

YamiKaitou 05-01-2013 18:11

Re: [CSO] Hidden-Mod - By OxYgEn
 
Quote:

Originally Posted by oxygen935 (Post 1943981)
(cause of big file i must uploaded on other host...)

You could split the file into multiple parts, but since the host you choose isn't trying to confuse people with a page littered with ads, I won't make you do this (can't speak for others though)

Code:

#include <fakemeta_util>
Why? There is no reason to use this include, just use the other methods

Code:

#include <dhudmessage>
#include <model_changer>

Where are the Include files or links to the Include files?

AmineKyo 05-01-2013 18:13

Re: [CSO] Hidden-Mod - By OxYgEn
 
Furien mod/NightCrawlers FTW
Btw : nice job, I'd suggest some ideas for this mod but for now i have nothing to tell

dias 05-01-2013 19:24

Re: [CSO] Hidden-Mod - By OxYgEn
 
- LOL ?. What is day system ?
- You should add more description, and does human become hidden when they kill hidden ?

21/9/2012
http://www.youtube.com/watch?v=9VmWCThd8QI

oxygen935 05-02-2013 01:50

Re: [CSO] Hidden-Mod - By OxYgEn
 
@Yamikaitou: You're right. I fixed the downloading part. Also posted the include files. I use fakemeta_util cause i change the sound on joker knife. I don't know any other way to do this. So if you have one post it... :P

@AmineKyo: I really don't like furien, but i really enjoy nightcrawlers. Thanks!

@Dias: More description Added. As i told you the idea is from you. But this plugin has a lot of differences from you.I didn't take the plugin from you. I just made a new one cause i love this mod...

YamiKaitou 05-02-2013 02:21

Re: [CSO] Hidden-Mod - By OxYgEn
 
Quote:

Originally Posted by oxygen935 (Post 1944184)
@Yamikaitou: You're right. I fixed the downloading part. Also posted the include files. I use fakemeta_util cause i change the sound on joker knife. I don't know any other way to do this. So if you have one post it... :P

You actually never use fakemeta_util. You do use fakemeta though, so just change fakemeta_util to fakemeta and it will still compile. Also, fakemeta_util is included with AMXX


There is one thing that I noticed that annoys me, and that is that you switch between using { } and not using them. It is fine if you don't use them when it is just one line, but keep it consistent.

Example (2 different styles in the same function...)
Code:
public cmd_knifes(id) {     if(knife_used[id])     {         client_printc(id, "%s Wait for !tnext round !nto !gopen !nthis menu!", saychatprefix)         return PLUGIN_CONTINUE     }         knifes = menu_create("[Hidden-Mod] Knifes Menu:","cmd_knifes_handler")     menu_additem(knifes, "Axe - HP++","1",0);     menu_additem(knifes, "Combat - Gravity--","2",0);     menu_additem(knifes, "Strong - Damage++","3",0);
    if(get_user_flags(id) & VIP_FLAG) menu_additem(knifes, "Hammer - Speed++","4",0);
    else menu_additem(knifes, "\dHammer - Speed++ - VIP ONLY","4",0);
    menu_additem(knifes, "Default Knife - Gravity-","5",0);     menu_setprop(knifes, MPROP_EXIT, MEXIT_ALL)    
    if(cs_get_user_team(id) == CS_TEAM_CT)
    {      
        menu_display(id, knifes, 0);
    }
        return PLUGIN_HANDLED }

oxygen935 05-02-2013 02:28

Re: [CSO] Hidden-Mod - By OxYgEn
 
you just wanted to use only 1 style of using the brackets?
Code:
if(get_user_flags(id) & VIP_FLAG) menu_additem(knifes, "Hammer - Speed++","4",0); else menu_additem(knifes, "\dHammer - Speed++ - VIP ONLY","4",0); menu_additem(knifes, "Default Knife - Gravity-","5",0); menu_setprop(knifes, MPROP_EXIT, MEXIT_ALL) if(cs_get_user_team(id) == CS_TEAM_CT) menu_display(id, knifes, 0);
i hope it's ok now?
PS: Change fakemeta_util to fakemeta

YamiKaitou 05-02-2013 02:34

Re: [CSO] Hidden-Mod - By OxYgEn
 
Quote:

Originally Posted by oxygen935 (Post 1944200)
you just wanted to change the style of using the brackets?

What you decide to use is up to you, just make it consistent throughout the code (it is easier to read). Note, this is not an Approval requirement, just a readability request.

This is my personal preference, I just find it easier to follow this way. You are free to use whatever method is easiest for you to read.
Code:
if (get_user_flags(id) & VIP_FLAG) {     menu_additem(knifes, "Hammer - Speed++","4",0); } else {     menu_additem(knifes, "\dHammer - Speed++ - VIP ONLY","4",0); } menu_additem(knifes, "Default Knife - Gravity-","5",0); menu_setprop(knifes, MPROP_EXIT, MEXIT_ALL); if (cs_get_user_team(id) == CS_TEAM_CT) {     menu_display(id, knifes, 0); }


All times are GMT -4. The time now is 16:50.

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