Raised This Month: $ Target: $400
 0% 

DM/OP4 King of the Hill


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Gameplay       
MarquisEXB
Junior Member
Join Date: Mar 2008
Old 03-15-2008 , 23:43   DM/OP4 King of the Hill
Reply With Quote #1

Hi new programmer here. I found a KOTH plugin, but that seemed to be for cstrike. This one is written for DM/OP4. It works for both teamplay & dm.

In the teamplay version all players are on one team, and the king is on another (everyone vs one player). Whoever kills the king respawns on the new team as the king (the old king's goes on the other team with everyone else). The king spawns with 100 health & 50 armor, and regenerates up to 100/100. In non-teamplay, the king glows (so you know who the king is).

It seems to work best on open levels like rats where the king has plenty of places to run/hide, and fails miserably on killbox style levels.

Being a new programmer, unfortunately I am not able to do everything I would like to do. For instance I'm not sure how to set the variables to be read from cvar. Instead I've used globals (g_regen_speed, g_king_frag_bonus, etc.). Additionally I'm not sure how to use amx rights, or how to have it load automatically each round (i have to type "amx_koth" in the console each time).

This specific version is not tested, but a previous one works fine. I haven't been able to test it out as I play on a small lan.
Attached Files
File Type: sma Get Plugin or Get Source (amx_koth.sma - 802 views - 6.1 KB)

Last edited by MarquisEXB; 03-16-2008 at 11:18.
MarquisEXB is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-15-2008 , 23:49   Re: DM/OP4 King of the Hill
Reply With Quote #2

Please remove the .amxx file. When you upload a sma file, the amxx is generated automatically
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
MarquisEXB
Junior Member
Join Date: Mar 2008
Old 03-16-2008 , 11:20   Re: DM/OP4 King of the Hill
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Please remove the .amxx file. When you upload a sma file, the amxx is generated automatically
Done. By the way if anyone wishes to help edit this plugin to enable features (cvar, amx user level, etc.) please feel free to let me know. I'm still getting my feet under me with Pawn programming.
MarquisEXB is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-13-2008 , 17:35   Re: DM/OP4 King of the Hill
Reply With Quote #4

As much as I like the idea, the coding isn't very good and no one has said anything about whether it works or not. I also don't like your description.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 20:36.


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