AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Brass Knuckle Frags w/ API (https://forums.alliedmods.net/showthread.php?t=185404)

Liverwiz 05-16-2012 19:59

Brass Knuckle Frags w/ API
 
5 Attachment(s)
This plugin is no longer supported.
Description
Here is an edit of the oh so loved Brass Knuckles. This plugin gives users brass knuckles, which replaces the knife, and when used knocks your enemy around a bit by changing where he looks. Giving you a nice "i just got punched in the face" effect. Along with the regular brass knuckles there is a point system (called frags) that allow you to level up through each kill, bomb point, suicide, and knife. The frags continue to progress and build, allowing you to level up. Each level has a different skill, as well as built-in capabilities for custom power-ups.

Levels
Level 0: Normal knife (typical knife damage w/ slight knock)
Level 1: Regular brass knuckles (typical knife damage w/ a heavy knock to disorient enemy)
Level 2: Run faster (gives you the ability to run a bit faster. just enough to over-take an enemy easier)
Level 3: Jump higher (you can jump a little higher)
Level 4: Stronger (this gives your brass knuckles a little harder of a hit. +15% by default)
Level 5: Reserved to allow for power ups
Level 32: Instakill (kill an enemy with a single punch)

Features
Aside from frags and levels this is what this plugin provides:
-Disorientation of opponent on hit
-Tells all clients when someone has bought BK (togglable through CVARs)
-Customizable through defines and cvars
-Fully toggleable (plugin, frags, damage, printall)
-Ability to have Brass Knuckles always replace knife (bk_cost -1) or free (bk_cost 0)
-Damage CVAR to edit how much extra damage a level 4+ will do
-Instakill level easily able to change/toggle
-Sound for when someone was killed by a player with instakill
-Commands to retrieve your frags/level
-Admin commands to give players frags or set their level
-Admin menu
-nVault capability to save your frags
-supercharged mode -more frags to level faster
-Multi-Lingual support
-HUD messages/Color CVARs
-Rank/stats system
-Logs
-Team Attack workings (if a user with BK team attacks- they get knocked around and extra damage is not done)
-Gravity reflects server's set gravity as well (in sv_gravity)
-API to let you develop and implement your own powers. Very easy to use, just include FragsBrass.inc and go from there!
-My own set of a few fun power ups (included in liver_bkpowers.sma)

Commands
User Commands:
say /buybk -purchases and enables brass knuckles
team_say /buybk -same thing
say /bkhelp -help message for Brass Knuckles
say /bk -help message
say /resetlevel -resets your frags to 5 (skip level 0)
say /level -prints your level
say /frags -prints your frag count
say /savefrags -saves your frags
say /loadfrags -Loads your frags from vault (fail safe system)
say /bkfstats -Shows you your Brass Knuckle Frags stats (frags/level/frags till next level)
say /bkfrank -Shows your rank against other players currently connected [beta]
say /powers -Gives you a list of powers you can set (level dependent)
say /removepower -Gives you a list of your powers so you can remove one or all

Admin Commands: (all require ADMIN_KICK except for vaultprune which requires ADMIN_BAN)
bkf_admin -shows the Brass Knuckle Frags admin menu
bkf_setlevel [user] [level] -sets the level of the user(name)
bkf_setfrags [user] [frags] -sets the frag count of the defined user
bkf_givefrags [user] [frags] -grants a defined amount of frags to the user
bkf_vaultprune [days] -how long ago you want records deleted (bkf_caultprune 30.5 will delete records older than 30 and a half days ago)


CVARs
brass_knuckles 1// <0|1> toggle plugin on and off
bk_printall 1 // <0|1> toggle printing the purchase of BK server wide
bk_cost 2500 // <-1-16000> sets the cost of BK >> -1 replace knife, 0 free
bk_frags 1 // <0|1> toggle point (frag) system on and off
bk_level_speed 40 // Extra speed given to player
bk_level_strength 25 // % extra damage done when strength is enabled -0 disable
bk_bomb_frags 1 // <0|1> toggle extra points for bomb objectives
bk_supercharged_frags 1 // <0|1> toggles supercharged mode.
bk_teamattack 1 // <0|1> Reverses knock of Team Attack & displays HUD message
bk_attack_color "255000255" // RRRGGGBBB format color for Team Attack HUD message
bk_levelup_color "050255050" // RRRGGGBBB format color of Level Up HUD message
bk_powerup_color "181181181" // RRRGGGBBB format color for Power Up HUD message
bk_one_power_level 5 // Level to enable extra powers
bk_two_powers_level 9 // Level for 2 extra powers
bk_three_powers_level 12 // Level for 3 extra powers
bk_log_vault 0 // <0|1> Toggles logging of nVault events

Modules
Fun
Fakemeta
Engine
cstrike
csx
nvault
hamsandwich

Installation
Download the source of all extensions and core, FragsBrass.inc and colorchat.inc and compile locally
Put the compiled plugins into your /amxmodx/plugins folder
Update your plugins.ini to include "frags_brass.amxx" and any extensions you may have
Make sure your modules.ini has all relevant modules enabled
extract the zip to your /cstrike or /czero folder accordingly
Restart server or change map
Profit

Notes
colorchat include attached, also available @ https://forums.alliedmods.net/showthread.php?t=94960
I'm still developing the plugin. I'll update the source with changes as i get them
Still have a bit to do, but this is a tested and running version.
It compiles successfully
API IS HERE!!!

To Do List
Multi-lingual translations
Powers
Powers Menu

Knife Fight (with or without betting frags)
Skin for level0 knife (anyone wanna make me a brass kuckles knife?)
SQL support to replace nVault or option between the two
Scoring Player min (require a minimum amount of players before scoring begins)
Fix speed walk bug

Known Bugs
I am working on these bugs while i can but they don't hinder the function of the plugin
Please report any other bugs you find in the forum below

When deleting a power (if you have too many powers) the selected power does not get applied
Some powerups malfunction under certain circumstances
Players with speed powerups make sounds while walking (not while crouching)

Translated Languages
[en]
[es] -Thanks, Tallulah
Partially Translated Languages (based on old release)
[sk]
[ro]

Spoiler

Liverwiz 05-16-2012 19:59

Re: Brass Knuckle Frags
 
Currently Working On:
My tan

Coming soon:
No more support

Liverwiz 05-16-2012 20:00

Re: Brass Knuckle Frags
 
4 Attachment(s)
THE API IS HERE!
Here are some of the powerups that i've made as well as the API (include file) used to run them.
This is a hit in my server and has become very addicting. If you have any ideas for more powers please feel free to post your own extensions, or just throw out some ideas and if i have time, and deem them worthy, i will write them myself.

Any extensions of powers i like i will post links to those threads here. My powers i will also attach in this post. Please make sure you powers are functioning before you post them. Otherwise they will not be linked.

Liverwiz 05-29-2012 12:54

Re: Brass Knuckle Frags
 
UPDATED! v2.1

INCLUDES: bug fixes, supercharged mode, admin menu, /savefrags command, efficiency, and other little things. See the source for more information.

leonard19941 05-30-2012 06:39

Re: Brass Knuckle Frags
 
Suggestions:

Add a multi languages.


I have a doubt, is a knife mod?

Liverwiz 05-30-2012 10:45

Re: Brass Knuckle Frags
 
Quote:

Originally Posted by leonard19941 (Post 1719285)
Suggestions:

Add a multi languages.


I have a doubt, is a knife mod?

Multi-language is on my to-do list, i just need to find the time to figure it out.
What do you mean "is a knife mod?"

EDIT: Multi-language support is NOW RELEASED! Put in your translations.

pokemonmaster 05-31-2012 17:10

Re: Brass Knuckle Frags
 
Excellent! :up:
GJ!

Liverwiz 06-03-2012 14:23

Re: Brass Knuckle Frags
 
UPDATE! v2.2

Now includes: Multi-Lingual support, efficiency changes, few tweaks

NOW LOOKING FOR TRANSLATORS!
Please post your translations.

Here's that thread....http://forums.alliedmods.net/showthread.php?t=186837

hornet 06-04-2012 08:34

Re: Brass Knuckle Frags
 
You'd be better off going to multilingual to get translations.

Liverwiz 06-12-2012 00:40

Re: Brass Knuckle Frags
 
UPDATED! v2.3.5

This is now a functional (beta) release
Worthy of install to get used to it and see what you think.

includes: bug fixes -lots of them, optimizations, HIGH_SPEED define to easily change how fast you run when you are a level 2+, good values for powerups (gravity/speed), working levelup sound, STEAM_ID_PENDING mitigation, and other stuff added to the source for developers.

ENJOY! let me know what you think.

ConnorMcLeod 06-12-2012 02:28

Re: Brass Knuckle Frags
 
Please alloc model strings and set models using pev_viewmodel and pev_weaponmodel with cached allocated values, this way you don't alloc and alloc again strings using memory for nothing ( allocated strings are kept in memory after map change !! )

g_iAllocDummy = engfunc(EngFunc_AllocString, "model/dummy.mdl")


set_pev(id, pev_viewmodel, g_iAllocDummy)

or :

set_pev_string(id, pev_viewmodel2, g_iAllocDummy) // that one is not required in that case because pev_viewmodel and pev_viewmodel2 are particular

instead of

set_pev(id, pev_viewmodel, "model/dummy.mdl")

Liverwiz 06-13-2012 13:22

Re: Brass Knuckle Frags
 
UPDATED! v2.3.6

Includes: HotFixes, Powers are now applied directly on purchase (no weapon change needed)

Liverwiz 06-20-2012 23:17

Re: Brass Knuckle Frags
 
UPDATED! v2.4

Includes: Lots and lots of bug fixes. New ML tokens. Optimizations, code readability changes, more comments. New commands, HUD messages, logs, more CVARs. Extra damage is now percentage instead of just damage (this will make it more effective for high damage hits. Headshots give 2 frags instead of 1.

New Commands: /bkfstats and /bkfrank

Let me know what you guys think! This mod is turning into something awesome. With even more awesome things to come!


EDIT: IMPORTANT UPDATE! v2.4.3
includes: HotFix (frags not save properly), HUD color CVARs, /loadfrags client command

DreamWorks 07-02-2012 19:56

Re: Brass Knuckle Frags
 
Fucking Awesome!
This will be added on my #6 server

Hope it's will be full with players

Liverwiz 09-18-2012 14:37

Re: Brass Knuckle Frags w/ API
 
UPDATED! v2.5
The biggest update yet. Includes more powers, API, dynamic natives, optimizations, commands, stability improvements, admin messages, level 0 knife skin, more HUD messages, MAXLEVEL define to max out the level in the server, powers menu, separation of powers from core (power levels 1-4 now in separate plugin), more functionality and customization, check the source for complete list.

new commands:
/powers /removepower


All times are GMT -4. The time now is 06:38.

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