View Single Post
Plugin Info:     Modification:          Category:         
Alekkkk
Member
Join Date: Mar 2012
Location: Bulgaria
Old 05-22-2012 , 15:24   Challenge Mod v0.6 [SaveXP]
Reply With Quote #1

Challenge Mod
v0.6



Contents
Description:
  • Ok , in the video you can see a map ( thanks to keshi for the map ) made for this mod and the gameplay changed in v0.5
  • This mod is made only for dueling with others, like in jb , but u can duel with who you want all the time. There can be more than one duel at a time. You can injure only the person with who you are in duel.
  • When player accept a challenge , both challenger and challenged will be teleported to random area ( you can set positions with a command ( see configuration and commands ) and will be frozen for 5 seconds ( can be changed with cvar ). After that the duel will start.
  • If you want you can enable glowing with a cvar. If is enabled players will glow in random color during the duel ( easy to see your opponent ). For glowing you can see the video from the first version in the end of the post.
  • In v0.6 is added shop. You can buy regeneration(10 sec 30 hp) , speed (300.0 , can be changed with define), flashbang, +50 armor.
    You can't open the shop with a command. It is open automatically when the duel starts , and can be used only once during a duel.

Semi clip is active for all but the players in duel.
If you have "Vip Access" , all weapons will be unlocked for you , and will spawn with +50 armor

Levels and xp needed:
Spoiler


Note: If you do not select anything in menus during the time , the choice will be made automatically

Configuration:
  • You can change [Challenge Mod] Prefix in the beginning of the .sma file.
    Spoiler
  • You must set positions where players will be teleported before starting duel.They will not be set automatically. You must use "duel_move [1-16]" command
    Spoiler
  • After that you must save them with "duel_save" . If you don't do that, they will not exist anymore after mapchange. - They are saved to a file with mapname and .chmod in /maps

    Note: In the archive there are positions for duel_arena.bsp .
  • You can configure some defines in the beginning of the .sma
    • #define COLOR_CHAT true
      Spoiler

    • #define ENABLE_GLOWING false
      Spoiler

    • #define ENABLE_XP_MODE true
      Spoiler
    • #define ENABLE_SOUNDS true
      Spoiler
    • #define VIP ADMIN_RESERVATION
      Spoiler
    • #define SPEED 300.0
      Spoiler
Suggestions:
  • Use Infinite Round plugin by Arkshine . You don't need rounds or objectives
  • Use Free for all plugin by ConnorMcLeod . That you can duel with everyone in the server.
  • Max Players 16 .
  • Use the map in the archive "duel_arena.bsp"

Commands:
  • Say /Challenge - Opens choose player menu (choose player to duel with)
  • Say /Duel - The same as above
  • Say /help - Displays help in console
  • Say /xp - Shows hud with level and xp
  • Say_team /xp - Same as above
  • Say /afk - Auto refuse duels and can't be challenge anymore ( say it again to go back )
  • Say /spec - Go to spectators team. Say it again to play
  • Admin Commands (You need rcon flag to use this commands)
    • duel_move [1-16]
    • duel_save
      see configuration how to use them
Cvars:
  • XP Cvars
    • duel_savexp [1/0] - Save XP or Not
    • duel_xp_kill [15] - How much XP to gain per kill
    • duel_xp_hs_bonus [10] - How much XP to recieve for headshot
    • duel_xp_savetype [1/2] - How to save XP. To authid or to names.
    • Bonus XP For Different Weapons - 0 is default for all
      • duel_xp_usp "0"
      • duel_xp_glock "0"
      • duel_xp_deagle "0"
      • duel_xp_p228 "0"
      • duel_xp_elite "0"
      • duel_xp_fiveseven "0"
      • duel_xp_mp5 "0"
      • duel_xp_tmp "0"
      • duel_xp_p90 "0"
      • duel_xp_mac10 "0"
      • duel_xp_ump "0"
      • duel_xp_galil "0"
      • duel_xp_famas "0"
      • duel_xp_ak47 "0"
      • duel_xp_m4a1 "0"
      • duel_xp_sg552 "0"
      • duel_xp_aug "0"
      • duel_xp_scout "0"
      • duel_xp_awp "0"
      • duel_xp_g3sg1 "0"
      • duel_xp_sg550 "0"
      • duel_xp_knife "0"
      • duel_xp_grenade "0"
  • Block Fire in the hole Cvars
    sv_fith_block
    • 0 - Disabled
    • 1 - Block radio
    • 2 - Block message
    • 3 - Both
  • Auto Join Cvars
    • ajc_team (0: OFF, N: team index, 5: auto team, default: 5) - controls team join
    • ajc_class (0: OFF, N: class index, 5: auto class, default: 5) - controls class join
    • ajc_imm (0: OFF, 1: ON, default: 1) - don't affect on immuned players (ON/OFF)
  • Automatic Unstucking Cvars
    • amx_autounstuck | 1/0 | Turns plugin on/off
    • amx_autounstuckeffects | 1/0 | Turns unstuck effects on/off
    • amx_autounstuckwait | default 6 | Accuracy of unstuck detecting, higher is more accurate and takes more time, value 10 takes 1 second. value 1 takes 0.1 second, do NOT set this to 0, if you dont know what to do with it, leave it on 6
  • Mod Cvar's
    • duel_autoanswer [1/2] - (def:2) Auto accept / Auto decline
    • duel_challengedmenu_timer [10] - (def:10) Time to answer the challenge
    • duel_weaponmenus_timer [10] -(def:10) Time to choose weapon (for every menu)
    • duel_semiclip [1/0] - (def:1) Enable/Disable semiclip
    • duel_respawntime [5] - (def:5) Seconds before respawn player
    • duel_blockkill [1/0] - (def:1) Enable/Disable Kill Command
    • duel_blockdrop [1/0] - (def:1) Enable/Disable Drop Command
    • duel_blockpickup [1/0] - (def:1) Enable/Disable Pick up weapons
    • duel_enableafk [1/0] - (def:0) Enable/Disable AFK command
    • duel_grenade_selfdmg [1/0] - (def:0) Enable/Disable grenade self dmg
    • duel_afk_cooldown [30] - (def0) How much seconds to wait after can use "afk" command again
    • duel_start_timer [5] - (def:5) How much seconds to wait before starting duel ( Players are frozen in this time )
    • duel_enable_spec [1/0] - (def:1) Enable/Disable "/spec" command
  • Shop Cvars
    • shop_enable [1/0] - (def:1) Enable/Disable the shop
    • shop_regen [20] - How much to cost regeneration in the shop ( in XP )
    • shop_speed [10] - How much to cost Speed in the shop ( in XP )
    • shop_flashbang [10] - How much to cost Flashbang in the shop ( in XP )
    • shop_armor [5] - How much to cost Armor in the shop ( in XP )


Installation:
  • First of all you need to install ColorChat v0.2.1 by ConnorMcLeod. Otherwise Challengemod will not work
  • Download Challengemod.sma and compile it locally with chatcolor.inc from Connor's plugin
  • Take the Challengemod.amxx (after compile it) and put it in \cstrike\addons\amxmodx\plugins
  • Open cstrike\addons\amxmodx\configs\plugins.ini and add Challengemod.amxx on new line
  • Download and extract resources.zip in \cstrike folder

    If you define COLOR_CHAT to false you don't need ColorChat plugin. Also you will not need chatcolor.inc to compile it.( see Configuration for more information )

Requirements:
  • amxmisc
  • cstrike
  • engine
  • hamsandwich
  • fakemeta
  • fun
  • chatcolor
  • nvault
Credits:
Multilangual Support:
  • English
  • Bulgarian
  • Polish - OnePL
  • Swedish - MoKeN
Changes in ML v0.4:
Spoiler


Changelog:
Spoiler


Video - http://www.youtube.com/watch?v=1qNbkpM7G1c
This video is from the first version of the plugin.

If you want to test pm me.

You need to compile this plugin locally !
Attached Files
File Type: zip resources.zip (4.15 MB, 818 views)
File Type: txt Challengemod.txt (7.7 KB, 436 views)
File Type: sma Get Plugin or Get Source (Challengemod.sma - 1702 views - 88.8 KB)
__________________

Last edited by Alekkkk; 06-20-2012 at 18:16.
Alekkkk is offline
Send a message via Skype™ to Alekkkk