Fast paced combat with goodies
This is something I made when I was learning how to script and maybe some of you find it useful. In a nutshell this modification aims to make combat fast paced with new killstreaks, b3 command support, new vision settings and more.
It also kinda looks like Iceops TDM modification just way more chaotic.
TDM features HighXP mode, a kill is worth 1000 points. Max score limit is 1000000 (one million - 1000 kills), default limit used on test servers was 300000.
3KS (kill streak) - UAV
5KS - AGM (aka predator)
9KS - Artillery barage
12KS - Airstrike (extra: Bigger kill radius, planes now actually play FX)
18KS - Helicopter (extra: Heli now fires laser guided missiles, so expect to be hit by a missile if you stand still)
28KS - Predator drone (AGMs on a ammo system aka reaper)
40KS - AC130 (with all 3 cannons + different huds)
60KS - Tactical nuke (will end the game)
rcon commands (to be used with B3):
cmd fps:<Player_CID> (Disable/enable custom vision settings)
cmd fov:<Player_CID> (change Field of View settings - 1.0;1.125;1.25)
Scripts also include "SMART" spawn protection - If you move too far from your spawning point, it will auto disable.
Known bugs - note that at the time of scripting I was a complete newbie and a lot of the code is trashy.
-Auto team balance causes a lot of non-fatal script runtime errors - won't crash or lag the server but it will make your logfile extremely big over short periods of time (I had over 3GB log file in less than a month)
-Helicopter guided missiles sometimes fail to delete
-AGM, AC130 and predator drone killstreaks sometimes fail to hide you and to prevent you from being killed while using them
-AGM killstreaks sometimes fails to delete killmarkers, effectivly giving the person wallhack (may or may not happen with other killstreaks using killmarkers aswell - so far it never did)
-Only TDM was tested, so other modes might fail
-Do not go over 44 player slots; anything above that will eventually cause out of script variables critical error - This WILL crash the server
-Tactical nuke might kill you(this is not supposed to happen )
-If you respawn during active tactical nuke strike, you will be able to use weapon again aswell as having normal vision restored.
To change welcome message (big one that appears over the middle screen) go to _globallogic.gsc lines 696 and 719. Geowelcome and advs are located in main.gsc file, credits are in credit.gsc file (It's a BraXi DR script).
Extra goodies(not in the download):
-Randomised map rotation order (NOTE: Never tested on live server, was just an experiment of mine)
-script template for CoD4x client commands (commands with $ - Follow the official tutorial to add these in CoD4X wiki first)
Add the following lines at the end of "Callback_ScriptCommand(command, arguments)" function:
then make a new script file and modify it to your preference (This script is from my other mod so it will not work out of the box with these scripts) - Follow the official CoD4X wiki tutorial on where to use addscriptcomand function (on game start), then thread commandhandler on connection for every player.
-Parts of the code are from BraXi's Deathrun mod
-Parts of the code are from OpenWarfare mod
Use/edit this mod howerver you like, if you fix any of the bugs please upload the fixed version. If you have any questions I will do my best to answer them.
EDIT: Seems like the attachment isn't working so here is a mediafire link: Click me!
07-19-2016, 03:26 PM
very nice, thanks for sharing
i'll have a closer look later
07-19-2016, 05:28 PM
ac130 i need it! ty
07-19-2016, 09:06 PM
You might want to put this on something like Github and license it under an open-source license (although you have to check what is possible because you use parts of other mods with different licenses), so developers can easily help expand and improve it.
Good job though! A lot of people will enjoy this!
01-20-2017, 06:35 PM
tnx for share but those scripts is full of bugs,very strange coding man,tnx again!