Ok so I started to change the whole plugin to use both classes and multiples rockets. It also will stop using cvars and it will use configs files.
So there will be 2 main files and 1 (optional) per-map file.
This is the main config file:
Spoiler
PHP Code:
"dodgeball" {
//Speed of every player (for reference, pyro's base speed is 300). "PlayerSpeed" "300.0"
//Force player to use pyro "OnlyPyro" "0"
//Show the hud? "ShowHud" "1" //X position of the hud, from 0.00 to 1.00 or -1.0 for center. "Xpos" "0.03" //Y position of the hud (first line), from 0.00 to 1.00 or -1.0 for center. "Ypos" "0.21" //Color of the hud "color" "63 255 127" //When a player makes an "aimed shot" or a super shot this line will appear on his hud. "supershottext" "Super Shot!" //Color super shot line "supershotcolor" "255 0 0"
//Color-coded rockets //This whill make a line in the hud for every rocket and it will have it's own color //Because of hud limitations the plugin will only track up to 5 rockets (there is only 6 hud channels and one is used for the super shot) //If there are more than 5 rockets, only one, or AllowMultiRocketColor is off, this will be ignored. "multirocketcolor" { "AllowMultiRocketColor" "1" "rocket1" { //Name of the rocket's color "colorname" "Red" //RGB of that color "color" "255 0 0" //Material of the trail to use, WITHOUT extension (.vmt/.vtf); will be precached and added to the download list. //If more that one rocket is used, the plugin will ignore the rocket's own trail. "trail" "materials/sprites/laser" //Apply color to rocket's model? "applycolormodel" "1" //Apply color to rocket's trail? (maybe you make 5 separates trails with their own color) "applycolortrail" "1" } "rocket2" { "colorname" "Blue" "color" "0 0 255" "trail" "materials/sprites/laser" "applycolormodel" "1" "applycolortrail" "1" } "rocket3" { "colorname" "Green" "color" "0 255 0" "trail" "materials/sprites/laser" "applycolormodel" "1" "applycolortrail" "1" } "rocket4" { "colorname" "Yellow" "color" "255 255 0" "trail" "materials/sprites/laser" "applycolormodel" "1" "applycolortrail" "1" } "rocket4" { "colorname" "Magenta" "color" "255 0 255" "trail" "materials/sprites/laser" "applycolormodel" "1" "applycolortrail" "1" } }
//Sounds used in this game-mode, the plugin will pre-cache them and add them to the download table. //The plugin will use all of them randomly and this sounds are independent from the rockets. "sounds" { //When the round starts (NOT when the preparation period ends). "RoundStart" { "1" "vo/announcer_dec_missionbegins10s01.wav" "2" "vo/announcer_begins_10sec.wav" } //Played to a player that just died. "OnDeath" { "1" "vo/announcer_dec_failure01.wav" "2" "vo/announcer_dec_failure02.wav" "3" "vo/announcer_am_lastmanforfeit01.wav" "4" "vo/announcer_am_lastmanforfeit02.wav" "5" "vo/announcer_am_lastmanforfeit03.wav" "6" "vo/announcer_am_lastmanforfeit04.wav" } //Played to a player after a kill. "OnKill" { "delay" "5.0" //Time after a kill that the plugin won't reproduce any "OnKill" sound. "1" "vo/announcer_dec_kill01.wav" "2" "vo/announcer_dec_kill02.wav" "3" "vo/announcer_dec_kill03.wav" "4" "vo/announcer_dec_kill04.wav" "5" "vo/announcer_dec_kill05.wav" "6" "vo/announcer_dec_kill06.wav" "7" "vo/announcer_dec_kill07.wav" "8" "vo/announcer_dec_kill08.wav" "9" "vo/announcer_dec_kill09.wav" "10" "vo/announcer_dec_kill10.wav" "11" "vo/announcer_dec_kill11.wav" "12" "vo/announcer_dec_kill12.wav" "13" "vo/announcer_dec_kill13.wav" "14" "vo/announcer_dec_kill14.wav" "15" "vo/announcer_dec_kill15.wav" } //Played to the last client alive on every team. "LastAlive" { "1" "vo/announcer_am_lastmanalive01.wav" "2" "vo/announcer_am_lastmanalive02.wav" "3" "vo/announcer_am_lastmanalive03.wav" "4" "vo/announcer_am_lastmanalive04.wav" }
}
//Here we manage the flamethrower restriction //I'm trying to find a solution for these 3 problems //Remove the flamethrower looping sound //Remove the rainblower taunt kill //Allow deflects with phlogistinator (maybe a weapon attribute) "blockedflamethrowers" { "1" "40" //The Backburner (Bugged loop sound) "2" "423" //The Degreaser (Bugged loop sound) "3" "594" //The Phlogistinator (You can't deflect with the Phlogistinator you silly ) "4" "741" //The Rainblower (Taunt Kill) "5" "1146" //Festive Backburner (Bugged loop sound) }
"rocketclasses" { //The plugin will NOT use this class, this is used to define the default values. //This values will be used if they aren't specified on a class //DO NOT EDIT except if you know what you are doing. "default" { //Name of the rocket "Name" "Default Name"
//Material of the trail to use, WITHOUT extension (.vmt/.vtf); will be precached and added to the download list. "Trail" ""
//Model of the rocket, WITH extension (.mdl) ; will be precached and added to the download list. "Model" "" //Model size of the rocket when it spawns "ModelSize" "1.0" //Size increment after a deflect "DeflectSizeInc" "0.0"
//Base damage of the rocket (since it will be crit, it will deal more damage. "BaseDamage" "200" //Damage Increment on deflect "DeflectDamageInc" "0"
//Base Speed of the rocket tf2's rocket has a default speed of 1100.0 "BaseSpeed" "1100.0" //Speed Increment on deflect "DeflectSpeedInc" "50"
//Turn rate per tick "TurnRate" "0.05" //Damage Increment on deflect "DeflectTurnRateInc" "0.005"
//Delay ins seconds after being deflected "DeflectDelay" "0.1" //Select a the closest target on deflect. If it's 0 it will be random. "TargetClosest" "1" //Allow "aimed" shots, if the player is aiming directly to another player, the rocket will go to that player. "AllowAimed" "1" //Speed of an aimed shot. "AimedSpeed" "2500.0"
//Max time this rocket can bounce on walls (use zero if you don't want this feature. "MaxBounce" "10" //Delay in seconds after the rocket just bounced before the rocket start turning to it's target again. "BouceDelay" "0.1"
//Sounds used by the plugin, they all will be precached and added to the download list. //Use paths without sound/ "sounds" { //Played to everyone when the rocket spawns "PlaySpawnSound" "1" "SpawnSound" "weapons/sentry_rocket.wav"
//Played to a player is locked by the rocket "PlayAlertSound" "1" "AlertSound" "weapons/sentry_spot.wav"
//Played to everyone (except the locked player) when a team deflects. I added this for a custom "ping-pong" sound later. "PlayDeflectSound" "0" "RedDeflectSound" "items/cart_explode_trigger.wav" "BlueDeflectSound" "items/cart_explode_trigger.wav"
//Played from the rocket to everyone every BeepInterval "PlayBeepSound" "0" "BeepSound" "weapons/sentry_scan.wav" "BeepInterval" "1.0"
//Played to a player who makes an aimed shot. "PlayAimedSound" "1" "AimedSound" "weapons/airstrike_fire_03.wav"
} //Big explosion with effects, shockwave, and a damage radius "explosion" { //Create big explosion when the rocket explodes? "CreateBigExplosion" "0" //Damage of the explosion "Damage" "200" //Push strength of the explosion "PushStrength" "1000" //Radius of the explosion "Radius" "1000" //After this distance of the explosion, both damage and push strength will go down "FallOfRadius" "600" }
}
//Here we define all the classes, everything that you don't define here will have the default values "Classes" { "Normal" { "Name" "Homing Rocket" } "Nuke" { "Name" "Nuke" "Model" "models/custom/dodgeball/nuke/nuke.mdl" "BaseDamage" "200" "DeflectDamageInc" "100" "BaseSpeed" "500.0" "sounds" { "PlaySpawnSound" "1" "SpawnSound" "items/bomb_warning.wav"
//Here we define the spawner's limit "spawner" { //Max number of rocket that can exists at the same time. "MaxRockets" "5" //This are the classes' chances, they use the section's name to define them. //The numbers don't have to complete a specific number, so feel free to use them however you want. //for example 3 and 1 it's like 75% and 25%, but 9 and 1 will be like 90% and 10% "chances" { "Normal" "5" "Nuke" "1" } }
}
Some features here:
*You can add a trail for the rocket
*You can edit the size of the rocket AND how much it increments when deflected (giant nuke ftw).
*You can add multiple sounds (even for all the players when the rocket is deflected).
*If there are more than one rocket, and five or less, the hud will change to have only one line per rocket, color coded showing only the speed and N° of deflects
*This multiples rocket will have it's own colored trail/model.
*And a couple of more little things (seriously if you really want to edit these configs and suggest a feature, read the whole thing, I commented everything for you guys ).
So PLEASE to anyone who is interested on adding any new feature that it isn't listed here or would like a change on the config file, comment asking for that feature/change.
You can download the current version of the plugin on the first post.
I click on "get plugin " on the first page and the following message appears in a new tab : " Plugin failed to compile Please try contacting the author ! . "
You can put the plugin to donwload elsewhere. I can not download here. I need your plugin.