RSSy MYGO.pl Opublikowano Marzec 13, 2021 o 08:17 RSSy Udostępnij Opublikowano Marzec 13, 2021 o 08:17 This is to balance the universe of Counter-Strike getting all the attention and having all the cool stuff. They get to defuse why not same respect for mother mod that created it all? The almighty Half-Life and OP4. Tripmines, satchels, and snarks can be disabled finally also. *Nobody plays hardly so the satchel disarmament needs tested. I have it set so we cannot disarm our own handy work. Everybody is afraid to test because they get this funny feeling I will 'press the little button' and make it blow up in their face! PHP Code: /* * * Thanks to Destroyable Satchel Charge by Anggara_nothing for some code to jump start project. * * This is a replacement upgrade with new author and new name as idea was totally different: * * * * DISARM * * * Appreciate the destroyable aspect after being trapped in a teleport once. That's suicide though. * * This will let you dismarm and otherwise never pin 'players' anymore who are equipped with a knife. * * Satchels can still pin objects. * * Earlier on I had some of that nonsense fixed simply by making satchels solid_not. * Test it. Send feedback. Even if I am not around, this is easy to maintain. * */ Draw knife when squatting. Touch the mine not the line! Polishes off the infamous snarks same way. If you are lucky enough to have a pipewrench ducking is NOT required to disarm. CVARS hl_satchel 0|1 hl_satchel_health # Not all maps have a knife or pipe_wrench. I will add my code I call gives. It will randomly 'give weapons'. Slightly helps defend against spawn point campers to boot. Shooting unequipped people as they spawn. Common lamer problem. Always a knife but sometimes a pipe wrench. There a huge delay now on the gives because when testing with a bot army connecting and dying right and left I just do not like to dole things out THAT fast like when I first made the plugin to at least attempt to be more robust. GIVES Spoiler Code: #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <fun> #include <hamsandwich> new const GIVES[][]={ "ammo_9mmbox", "ammo_ARgrenades", "ammo_buckshot", "weapon_pipewrench", "weapon_penguin", "weapon_knife", "weapon_shockrifle", "weapon_sporelauncher", "weapon_m249", "weapon_grapple", "weapon_eagle", "weapon_sniperrifle", "weapon_displacer", "item_longjump", "weapon_357", "weapon_9mmAR", "weapon_crossbow", "weapon_crowbar", "weapon_egon", "weapon_gauss", "weapon_handgrenade", "weapon_hornetgun", "weapon_rpg", "weapon_satchel", "weapon_shotgun", "weapon_snark", "weapon_tripmine", "weapon_9mmhandgun" } new const REPLACE[][] = {"ammo_", "weapon_", "item_"} public plugin_init() { register_plugin("Gives random weapon(s) on spawn.", "A", ".sρiηX҉."); RegisterHam(Ham_Spawn, "player", "client_getfreestuff", 1); new mname[MAX_NAME_LENGTH]; get_mapname(mname,charsmax(mname)); if (containi(mname,"op4c") > -1) pause "a"; } public client_getfreestuff(id) { if( !is_user_connected(id) || is_user_bot(id) ) return PLUGIN_HANDLED_MAIN; if( is_user_alive(id) && is_user_admin(id) ) { client_print(id, print_chat, "Free random items on spawn!") //set_task(3.0, "reward", id, "a", 2); set_task_ex(5.0, "reward", id, .flags = SetTask_RepeatTimes, .repeat = 4); give_item(id, "weapon_knife"); } else if( is_user_alive(id) ) set_task_ex(10.0, "reward", id, .flags = SetTask_RepeatTimes, .repeat = 2); return PLUGIN_CONTINUE; } public reward(needy) { new charity[MAX_NAME_LENGTH]; formatex(charity, charsmax(charity), GIVES[random(sizeof(GIVES))]); if( is_user_connected(needy) ) { give_item(needy, charity); for ( new MENT; MENT < sizeof REPLACE; ++MENT ) replace(charity, charsmax(charity), REPLACE[MENT], " "); client_print(needy, print_center,"^n Free%s!", charity); } } Satchel CVAR, hl_satchel, is 0 by default in case you use the original satchel plugin already and just want disarmament capabilities. Attached Files Get Plugin or Get Source (satchel1.3_tripmine_disarmament.sma - 3.5 KB) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi