Raised This Month: $32 Target: $400
 8% 

[NS] Anti-Lame CC


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   Gameplay        Approver:   v3x (159)
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 05-11-2006 , 19:49   [NS] Anti-Lame CC
Reply With Quote #1

Anti-Lame CC

What Mod it's for
Natural Selection ONLY. In Combat Mode ONLY

What It Does
This plugin makes the CC's health godlike for a period of time (2 minutes by default) to stop the often "CC Lame" where marines take one path and aliens take another, unlike other plugins the commandstation still takes damage and gives exp while its godlike.
This allows you to still get EXP for biting the CC (and hive if you choose) without damaging it

Modules Required
amxmodx
ns
fakemeta
engine

Credit
WhitePanther - MvM Detection Code
v3x - Code optimizations

For best results compile with AMXX 1.70 untested on older versions.

Changelog
V1.0
-initial release
v1.1
-MvM Support
v1.2
-Eliminated need for precache
v1.3
-Code Optimizations (thanks v3x)
-Added optional hive invincibility
Attached Files
File Type: sma Get Plugin or Get Source (cclame.sma - 2010 views - 2.3 KB)
__________________
Nothing but a whisper in the wind~~
DDR Khat is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-12-2006 , 03:34  
Reply With Quote #2

Small optimization(s):
Code:
#include <amxmodx> #include <ns> #include <fakemeta> #include <engine> public plugin_init() {     register_plugin("Anti-Lame CC", "v1.2", "KuLeD00d")     if( ns_is_combat() && ns_get_build("team_command", 0, 0) < 1 )     {         register_event("Countdown", "NewCountdown", "ab")         register_cvar("cc_time","2")     } } public NewCountdown( ) {     new cc = find_ent_by_class(1, "team_command")     set_pev(cc,pev_health,99999999.0)     set_task((float(get_cvar_num("cc_time")) * 60.0),"uninv") } public uninv() {     new cc = find_ent_by_class(1, "team_command")     set_pev(cc,pev_health,10000.0) }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
ZiP*
Senior Member
Join Date: Jul 2004
Old 05-12-2006 , 05:45  
Reply With Quote #3

Sounds nice, but what about marines 'laming' the hive?
ZiP* is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 05-12-2006 , 06:38  
Reply With Quote #4

Quote:
Originally Posted by ZiP*
Sounds nice, but what about marines 'laming' the hive?
Added cvar choice to make hive immune also ;)

Quote:
Originally Posted by v3x
Small optimization(s)
Added and updated ^^ might wanna remove the contents of that post and thanks for the approval! +karma to you!
__________________
Nothing but a whisper in the wind~~
DDR Khat is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 05-13-2006 , 13:46  
Reply With Quote #5

any bugs / comments so far?
__________________
Nothing but a whisper in the wind~~

Last edited by DDR Khat; 01-06-2009 at 14:17.
DDR Khat 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 23:49.


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