AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Challenge Mod v0.6 [SaveXP] (https://forums.alliedmods.net/showthread.php?t=185871)

Alekkkk 05-22-2012 15:24

Challenge Mod v0.6 [SaveXP]
 
3 Attachment(s)
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] - (def:30) 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 !

Aooka 05-22-2012 15:30

Re: Challenge Mod v0.2
 
Nice !

OnePL 05-23-2012 15:56

Re: Challenge Mod v0.2
 
Polish translation

Quote:

[pl]
HELP_MSG = %s Napisz !g/challenge!n lub !gnacisnij M!n aby rozpoczac pojedynek
DUEL_WON = %s !t%s !gwygral !nw pojedynku przeciewko !t%s !nz !t%s
DUEL_SUICIDE = %s !t%s !npopelnil !tsamobojstwo
DUEL_OPPONENT_LEFT = %s Twoj przeciwnik wyszedl z gry
DUEL_DISCONNECTED_INDUEL = %s !t%s !grozlaczony!n z serwera podczas pojedynku przeciwko !t%s !nz !t%s
DUEL_WAITING_CHALLENGE = %s Czekasz na wyzwanie
DUEL_INDUEL = %s Jestes w pojedynku
DUEL_DEAD_MSG = %s Musisz byc zywy, aby otworzyc te menu
DUEL_WAITING_ANSWER = %s Czekas na odpowiedz od kogos
DUEL_PLAYER_ISBUSY = %s !t%s !njest zajety
DUEL_CHALLENGE_MSG = %s !t%s !gwyzwany !t%s!n do pojedynku z !t%s
DUEL_OPPONENT_NOTINGAME = %s Twoj przeciwnik nie gra
DUEL_REFUSED_CHALLENGE = %s !t%s !godmowil!n pojedynku przeciw !t%s !nz !t%s
DUEL_ACCEPTED_CHALLENGE = %s !t%s !gprzyjal!n pojedynek przeciw !t%s !nz !t%s
DUEL_RESPAWN_MESSAGE = Zostaniesz ozywiony za %d sekund
DUEL_GLOW_MESSAGE = Twoj przeciwnik swieci sie na
DUEL_COLOR_RED = CZERWONO
DUEL_COLOR_GREEN = ZIELONO
DUEL_COLOR_WHITE = BIALO
DUEL_COLOR_DARKBLUE = CIEMNY NIEBIESKI
DUEL_COLOR_YELLOW = ZOLTO
DUEL_COLOR_LIGHTBLUE = JASNY NIEBIESKI
DUEL_COLOR_PURPLE = FIOLETOWO
DUEL_COLOR_ORANGE = POMARANCZOWO

OnePL 05-29-2012 07:52

Re: Challenge Mod v0.3 [SaveXP]
 
Updated polish translation

Quote:

[en]
HELP_MSG = %s Napisz !g/challenge!n lub !gnacisnij M!n aby rozpoczac pojedynek
DUEL_WON = %s !t%s !gwygral !nz !t%s !nw pojedynku na !t%s
DUEL_SUICIDE = %s !t%s !nPopelnil !tsamobojstwo
DUEL_OPPONENT_LEFT = %s Twoj przeciwnik wyszedl z gry
DUEL_DISCONNECTED_INDUEL = %s !t%s !grozlaczyl sie!n z serwerem podczas pojedynku z !t%s !nw !t%s
DUEL_WAITING_CHALLENGE = %s Czekasz na wyzwanie
DUEL_INDUEL = %s Jestes w pojedynku
DUEL_DEAD_MSG = %s Musisz byc zywy, aby otworzy to menu
DUEL_WAITING_ANSWER = %s Czekasz na odpowiedz od innego gracza
DUEL_PLAYER_ISBUSY = %s !t%s !njest zajety
DUEL_CHALLENGE_MSG = %s !t%s !gwyzwal !t%s!n do pojedynku w !t%s
DUEL_OPPONENT_NOTINGAME = %s Twojego przeciwnika nie ma na serwerze
DUEL_REFUSED_CHALLENGE = %s !t%s !godrzucil!n pojedynek przeciwko !t%s !nw !t%s
DUEL_ACCEPTED_CHALLENGE = %s !t%s !gprzyjal!n pojedynek przeciwko !t%s !nw !t%s
DUEL_RESPAWN_MESSAGE = Zostaniesz ozywiony za %d sekund
DUEL_GLOW_MESSAGE = Twoj przeciwnik swieci sie na
DUEL_COLOR_RED = CZERWONO
DUEL_COLOR_GREEN = ZIELONO
DUEL_COLOR_WHITE = BIALO
DUEL_COLOR_DARKBLUE = CIEMNY NIEBIESKI
DUEL_COLOR_YELLOW = ZOLTO
DUEL_COLOR_LIGHTBLUE = JASNY NIEBIESKI
DUEL_COLOR_PURPLE = FIOLETOWO
DUEL_COLOR_ORANGE = POMARANCZOWO
DUEL_LEVEL_UP = %s Gratulacje! !gZdobyles!n nastepny poziom
DUEL_MENU = \yWybierz \ybron [\wpozostalo %d sekund\y]
DUEL_PISTOL_MENU = \yWybierz Pistolet [\wpozostalo %d sekund\y]
DUEL_MACHINE_MENU = \yWybierz Karabin Maszynowy [\wpozosatalo %d sekund\y]
DUEL_RIFLE_MENU = \yWybierz Karabin [\wpozostalo %d sekund\y]
DUEL_CHALLENGED_MENU = \w%s \yWyzwano Cie do pojedynku z \r%s \y[\wpozostalo %d sekund\y]
DUEL_CHALLENGED_ACCEPT = Przyjmij
DUEL_CHALLENGED_REFUSE = Odrzuc

rastafari 05-29-2012 09:56

Re: Challenge Mod v0.3 [SaveXP]
 
In my opinion best plugin made in may.
Some suggestions:
-Add /spec or something like that command to let others spectate the duel
-Change Hud message something like this:
Your Opponent:%name
Glowing in: %color
-Command to auto-refuse duels, writing it again would enable

Alekkkk 05-29-2012 12:22

Re: Challenge Mod v0.3 [SaveXP]
 
OnePL Thanks !

rastafari - i'll add /spec in next version, and change the message like you suggested.

I'm not sure what do you mean with
Quote:

-Command to auto-refuse duels, writing it again would enable
Now the duel is auto refused every time. You suggest to auto accept the duel if no action for the second challenge?

I found a little bug in the semi clip. That would be fixed in the next version too.

Challengemod.txt is updated.

Alekkkk 06-03-2012 16:15

Re: Challenge Mod v0.4 [SaveXP]
 
Update , see changelog.

FR0NTLINE 06-03-2012 22:50

Re: Challenge Mod v0.4 [SaveXP]
 
This is especially cool for people that talk shit and you want a 1v1 during game play. Especially some damn awp whores.

Thanks 4 your work ALEKKKK! and i'm glad your name has 4 k's instead of 3.

Alekkkk 06-09-2012 15:38

Re: Challenge Mod v0.5 [SaveXP]
 
Update. See description and changelog.. :D

ConnorMcLeod 06-09-2012 19:50

Re: Challenge Mod v0.5 [SaveXP]
 
Any reason you set bpammo on CmdStart ? (Could use AmmoX message, when ammo is > 1, set it to 1, for example)
Sent from UpdateClientData :
Spoiler



May be you could add a define to disable colorchat ?


All times are GMT -4. The time now is 17:49.

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