Raised This Month: $51 Target: $400
 12% 

View Poll Results: Which method of saving do you prefer?
NVault 4 33.33%
SQL 8 66.67%
Voters: 12. You may not vote on this poll

Bunnyhop Racers Mod (1.1.7a - 24.07.2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-10-2013 , 05:32   Bunnyhop Racers Mod (1.1.7a - 24.07.2013)
Reply With Quote #1

Bunnyhop Racers Mod

Video here : YouTube Video

If you like this plugin, please rate this thread with 5 Stars.

.: Description :.

With this plugin you can challenge other players to a race. On the top right corner it shows the current racing time and your speed in units per second.
It uses the ELO Ranking System to dertermine a players skill. Admins can place items on the map using the map editor to increase gameplay.

.: Commands :.
  • /race - Opens up the racing menu
  • /mapitems - Opens up Map editor (requires access defined in "#define EDITOR_ACCESS")
  • /respawn - Respawns you if you aren't in a race.
  • /elo - Prints your current ELO to chat.

.: Defines :.

PHP Code:
/* Do NOT change this values unless you know what you're doing! */    

#define TAG                "[Bunnyhop Racers]"
#define ID_HUD          (taskid - TASK_HUD)    

#define UPDATEINTERVALL     1.0

#define EDITOR_ACCESS         ADMIN_KICK

#define BASE_SPEED         250.0

// Maximum Increase / decrase of Rating
#define ELO_K             25
// ELO Score Parameter
#define ELO_SCORE_1ST        1.0
#define ELO_SCORE_2ND        0.85
#define ELO_SCORE_3RD        0.425
#define ELO_SCORE_4TH        0.2125
#define ELO_SCORE_5TH        0.10625    
#define ELO_SCORE_6TH        0.053125
#define ELO_SCORE_7TH        0.0265625
#define ELO_SCORE_8TH        0.01328125

/* Do NOT change this values unless you know what you're doing! */ 
.: CVars :.
  • party_time_accept (Default : 20) - Time a player has to accept or deny an invitation
  • party_max_players (Default : 6) - Maximum Size of a Party
  • party_allow_bots (Default : 1) - Allowing and auto-adding Bots to a party.
  • party_start_delay (old : sb_delay) (Default : 5) - Delay until race starts.
  • br_hud_r (Default : 255) - R value of HUD
  • br_hud_g (Default : 0) - G value of HUD
  • br_hud_b (Default : 0) - B value of HUD
  • br_speedbost_time (Default : 7) - Time (in s) how long you'll get a boost.
  • br_speedboost_speed (Default : 390.0) - Speed (in u) you'll have while having a speed boost.
  • br_pwnage_speed (Default : 100.0) - Speed other players will have after pwning them.
  • br_pwnage_time (Default: 9.0) - Time how long others are slowed down.
  • br_blind_time (Default : 6.5) - Time how long others are getting blinded.
  • br_shield_time (Default : 15.5) - Time how long shield lasts.
  • br_invis_time (Default : 7.0) - Time how long invisibility lasts.

.: Requirements :.
  • A Steam Server
  • Air Accelerate Module : Link
  • Orpheu : Link
  • PM Functions Pack : Link
  • Screenfade UTIL : In Attachments

.: Credits :.
  • vato-loco - Code for detecting end button
  • Exolent[jNr] - Player Air Accelerate Native
  • [R]ak - Party Menu
  • anakin_cstrike - Thunder Code

.: Upcoming Features:.
  • More Items.
  • HUB Servers
  • Automatic Matchmaking
  • Leaderboards
  • Tournaments


.: Changelog :.

Quote:
Vers. 1.1.7a

Note : This is an alpha Version, it may contain bugs since I was unable to test it enough.
  • Added ELO Ranking System (Detailed explanation here.)
  • Fixed Pwange Bug
  • Added Item Invisibility
  • Added ELO HUD at Race Finish
  • Items are now saved in "Inventory" and are used with F ("impulse 100" command)
  • Added SQL Saving (required now!)
  • Added Defines
    Quote:
    PHP Code:
    // Maximum Increase / decrase of Rating
    #define ELO_K             25
    // ELO Score Parameter
    #define ELO_SCORE_1ST        1.0
    #define ELO_SCORE_2ND        0.85
    #define ELO_SCORE_3RD        0.425
    #define ELO_SCORE_4TH        0.2125
    #define ELO_SCORE_5TH        0.10625    
    #define ELO_SCORE_6TH        0.053125
    #define ELO_SCORE_7TH        0.0265625
    #define ELO_SCORE_8TH        0.01328125 
  • Added Commands
    Quote:
    PHP Code:
    say /respawn Respawns player to start (if not in Race)
    say /elo Prints your ELO in chat
  • Added forward "bhop_OnRaceFinish" for sub-plugins. You don't need any includes etc.
    Here an example :
    PHP Code:
    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "Bunnyhop Racers - Sub Plugin"
    #define VERSION "9.4.5"
    #define AUTHOR "Kia"

    new g_iPoints[33]

    public 
    plugin_init() 
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)
    }

    public 
    bhop_OnRaceFinish(id)
    {
        
    g_iPoints[id]++

  • Added CVAR
    PHP Code:
    cvar_invis_time        register_cvar("br_invis_time","7.0"
  • Renamed all Race related CVars, new list
    PHP Code:
    cvar_time_accept     register_cvar("party_time_accept","20")
    cvar_max_players     register_cvar("party_max_players","8")
    cvar_allow_bots         register_cvar("party_allow_bots","1")
    cvar_delay                register_cvar("party_start_delay","5")
        
    cvar_laps                register_cvar("br_max_laps","3")
    cvar_r             register_cvar("br_hud_r","255")
    cvar_g             register_cvar("br_hud_g","0")
    cvar_b             register_cvar("br_hud_b","0")

    // SpeedBoost
        
    cvar_speedtime        register_cvar("br_speedbost_time","7")
    cvar_speedspeed        register_cvar("br_speedboost_speed","390.0")
        
    // Pwnage
        
    cvar_slowdown_speed     register_cvar("br_pwnage_speed","100.0")
    cvar_slowdown_time      register_cvar("br_pwnage_time","9.0")
        
    // Blind
        
    cvar_blind_time        register_cvar("br_blind_time","6.5")
        
    // Shield
        
    cvar_shield_time            register_cvar("br_shield_time","15.5")
        
    // Invis
        
    cvar_invis_time        register_cvar("br_invis_time","7.0"

Version 1.1.4.1
  • Fixed some bugs and typos.

Version 1.1.4
  • Added Items System
    • Speedboost : Speeds you up for a certain amount of time.
    • Pwnage : Thunders all players and slows them down.
    • Blind : Blinds all players for a short time.
    • Shield : Protects you from item attacks.
  • Added Map Editor
  • Added CVars
    • sb_speedbost_time (Default : 7) - Time (in s) how long you'll get a boost.
    • sb_speedboost_speed (Default : 390.0) - Speed (in u) you'll have while having a speed boost.
    • sb_pwnage_speed (Default : 100.0) - Speed other players will have after pwning them.
    • sb_pwnage_time (Default: 9.0) - Time how long others are slowed down.
    • sb_blind_time (Default : 6.5) - Time how long others are getting blinded.
    • sb_shield_time (Default : 15.5) - Time how long shield lasts.
  • Fixed some bugs.
  • Edited HUD.
  • Improved code.
  • Added Defines
  • #define EDITOR_ACCESS ADMIN_KICK
  • #define BASE_SPEED 250.0
Version 1.1.1
  • Added Game Description
  • Fixed some bugs
Version 1.1.0.0013
  • Fixed typo which disabled Kick Menu.
  • Added Laps System.
Version 1.0.9
  • Re-wrote entire plugin using [R]ak's Party Menu
  • Removed Sync Hud Message and replaced it with Interval HUD Message (#define UPDATEINTERVALL 0.2)
  • Removed Distanced traveled information
  • Added cvars
    • party_time_accept (Default : 20) - Time a player has to accept or deny an invitation
    • party_max_players (Default : 6) - Maximum Size of a Party
    • party_allow_bots (Default : 1) - Allowing and auto-adding Bots to a party.
    • party_start_delay (old : sb_delay) (Default : 5) - Delay until race starts.
    • sb_hud_r (Default : 255) - R value of HUD
    • sb_hud_g (Default : 0) - G value of HUD
    • sb_hud_b (Default : 0) - B value of HUD
Version 1.0.0 : First Release
.: Media :.






Video here : http://www.youtube.com/watch?v=Eljit...ature=youtu.be

The TrueSkill™ ranking system is a skill based ranking system for Xbox Live developed at Microsoft Research.
Attached Files
File Type: zip bhopracers117a.zip (17.5 KB, 360 views)
File Type: sma Get Plugin or Get Source (bhopracers117a.sma - 1234 views - 59.8 KB)

Last edited by Kia; 07-24-2013 at 03:37.
Kia is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-10-2013 , 05:42   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #2

Already testet works fine, all bhop servers should use this
UchihaSkills is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-10-2013 , 05:46   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #3

Thanks.
__________________
Kia is offline
DIS
Senior Member
Join Date: Jul 2013
Location: Somewhere Here xD
Old 07-10-2013 , 14:33   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #4

Good Job
DIS is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 07-10-2013 , 17:23   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #5

When someone wins the server should print someting saying that
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
darcadarca
Senior Member
Join Date: Feb 2012
Location: Romania
Old 07-11-2013 , 00:28   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #6

same as kreedz mod ?
@ what map is in the video ?
__________________
hqqqqqqqq
darcadarca is offline
Send a message via Yahoo to darcadarca
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-11-2013 , 09:01   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #7

1. Will be added.
2. No, it's just racing by now, but I'll add some more things.
3. Map is bhop_adventura
__________________
Kia is offline
darcadarca
Senior Member
Join Date: Feb 2012
Location: Romania
Old 07-11-2013 , 10:02   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #8

you wrote that you use code for detect end buton .. so bhop maps (most of them) have buton at start/end so .. or will create automatycally buton ?
__________________
hqqqqqqqq
darcadarca is offline
Send a message via Yahoo to darcadarca
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-11-2013 , 10:13   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #9

No, it searches for a button on the map.
__________________
Kia is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 07-11-2013 , 14:51   Re: Bunnyhop Racers Mod (1.0.0 - 10.07.2013)
Reply With Quote #10

Add a glow for players that are racing.
BeasT is offline
Send a message via Skype™ to BeasT
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 03:20.


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