Popular Content

Showing content with the highest reputation since 01/23/2019 in all areas

  1. 2 points
    Welcome! I have developed bot mods for call of duty for quite sometime now. Most notably for MW2. Unfortunately there were no real 'slick' way of controlling the bots, so we had to resort to 'hackish' ways of achieving even the simple task of moving a bot. But CoD4x supplies scripters with the ability to control the bots in a more natural way. Allowing us to create a much better experience for bots. You'll find that these bots function very similar to the bots you'll find in Black Ops series. SERVER DVARS: You can find the latest version over at ModDB: https://www.moddb.com/mods/bot-warfare/downloads/cod4x-bot-warfare-latest bots.zip
  2. 2 points
    Just tested and setDvar("player_meleeRange", 0); will do exactly what you need to remove knife damage. further edit: I threaded it in the _callbacksetup.gsc under "CodeCallback_PlayerConnect()" and it worked just fine.
  3. 2 points
    you will still get a knife but it will not kill anyone
  4. 1 point
    I need your opinion, tips, recommendations on the upcoming CoD4x-WebaAdmin application. The current beta version is similar to the previous CoD4 Status version, the difference is in authentication and admins management (no steam group required). Admins have to be added manually after they sign up. Here is a list of some futures what is included for now User Authentication, local, google+, facebook (later on i will include twitter, github and steam), all accounts can be linked so if u have admin rights it doesn't matter which authentication u use Regular registered users can take screenshots via the page, this can be disabled backend or limited to x screenshots / hour If u enable screenshots for regular users they can send cheater reports with 1 click Admins with required power can check this reports and decide what happens next (ban or remove report), the user who sent the report will be informed automatically with auto messages. If we ban based on the cheater report user who sent the report will be mentioned on the cheater report page Banned players can send a ban appeal, if the admin decide to keep the ban, unban request will be disabled for that ban in future Rcon commands can be added backend with required power to execute them Admin groups can be created, deleted Users can be added as admins, we can choose on which server if we have more then 1 server usermaps images can be uploaded, deleted Realtime shoutbox for admins separated and for all registered users Some faq pages, content can be added Server rules for each server separated can be changed backend I almost forgott, screenshots Now my question(s) 1. Since node.js requires a vps/dedicated server would it be a good idea to manage game servers to via the status page, I was thinking about https://github.com/GameServerManagers/LinuxGSM We could make them play together, so if we create a game server we could also create it on the status page. We could then manage the game server via the status page (start, stop, restart etc etc). Of corse in this scenario we could make things faster since we could read everything from the log files without rcon connections. later on i could also create an admin tool like manuadmin, b3 bot and it could be also created all together with gameserver and status page with 1-2 clicks I always rented game servers host so if this is a bad idea let me know pls Ofc if u have some tips, future requests let me know in comments so we can improve this new app in the future i will share a beta version in 1-2 days here with install instructions, later on i will upload it to github
  5. 1 point
    // client download settings seta sv_wwwDownload "1" // enable download redirection seta sv_wwwBaseURL "https://yourwebsite" // defines url to download from seta sv_wwwDlDisconnected "0" // disconnect clients while downloading You need a website so players can download the mod your server uses.
  6. 1 point
  7. 1 point
    sorry buddy but i am away .i will share them when i will be back.
  8. 1 point
    So basically the easy way would be to create a .gsc menu for this kind of stuff. But nonetheless I'd like to do it the way i planned it so if i understood correctly I should: set a userinfodvar on player connect event (which i dont know how to?) get the dvar via the @fraggy command Can i use leiizko's addDvar function? In order to save client's dvar to a server dvar? And I should send the server dvar back to the client to overwrite + I'v found this, if this is the gsc command u meant: self getuserinfo(dvar); And i dont know if this: , defines or just sets the dvar value? CHOICE_DVARFLOATLIST( 23, "Health", stats_health, { "Off" 0 "On" 1 }, ; ) Thanks for answering👐
  9. 1 point
  10. 1 point
  11. 1 point
    hence why i asked that. any range above 0 would leave a possibility to get knifed equal or below the set range (after my logic, i have not tested that)
  12. 1 point
    share someone's else hard work without even notify the author is not cool. good luck in your another copy/paste mod.
  13. 1 point
  14. 1 point
  15. 1 point
    This day has come! There was small discussion before and here we are! Now you can decompile few types of assets used in various mods and insert it in your own mods as source files. Requirements: cod4x18_dedrun build >= 1972 How to (En): Launch server with mod, with developer "2" mode. Once map loading finished, use "extract " console command to extract assets. It will be saved under "fs_homepath" in "extracted" directory. Map fastfiles are ignored for now. How to (Ru): Запустить сервер с модом, в режиме developer "2". Как только карта закончит загружаться, используйте консольную команду "extract <название_ff> <тип_ассета>" для извлечения ассетов. Они будут сохранены в директории "extracted", в папке, которая указана в переменной "fs_homepath". Фастфайлы карт пока игнорируются. Here few screenshots of recompiled sources of promodlive220, EU edition. If you experiencing some bugs during extracting and\or compiling of extracted assets (without any changes made) feel free to post your issues here. Don't forget to describe your problem and attach .ff.
  16. 1 point
    This script can help you _finalkillcam.gsc
  17. 1 point
  18. 1 point
    Hello guys, as i discussed with Ingramz earlier, after consideration the promod developers have released the official source code for promod 2.20 . View the source code @ : https://github.com/promod/promod4 Happy modding.
  19. 1 point
    Hello, I share antiAFK and autobalance script that I started to use on my server. This is the first version, so the script can be optimized and maybe contain bugs. I'm not sure (I tested it only in promod) but the script can be used on any mod and default gametypes. I called the AutoTeamsBalancer function in the init() function of the _globallogic file: level thread AutoTeamsBalancer(); and the function AFK_Camp_Watcher in the spawnPlayer() function, always in the _globallogic file: self thread AFK_Camp_Watcher(); but it is possible to call these functions from sd.gsx, dm.gsx, etc... file in the right callback (onSpawnPlayer, init...). The AFK_Camp_Watcher function is based on the example made in the Call of Duty 4: CoD Script Handbook. This autobalance version move the 'extra' players that have the lowest score in the team. Of course you can change the sort order in the function getLowScorePlayers (for example on spawnTime) and script should work the same. You can freely use the shared code. I hope I'll help someone sharing it. Regards, arbait AFK_Camp_Watcher: #include maps\mp\_utility; #include maps\mp\gametypes\_hud_util; #include common_scripts\utility; AFK_Camp_Watcher() { level waittill("prematch_over"); self endon("death"); self endon("disconnect"); self endon("joined_spectators"); self endon("game_ended"); my_afk_camp_time = 0; have_i_been_warned = false; camp_time = 20; while( 1 ) { old_position = self.origin; old_angles = self.angles; wait 1; new_position = self.origin; new_angles = self.angles; distance = distance2d( old_position, new_position ); if( distance == 0 && old_angles == new_angles ) { my_afk_camp_time++; } else { my_afk_camp_time = 0; have_i_been_warned = false; } if( my_afk_camp_time == camp_time && !have_i_been_warned ) { self IprintLnBold("^7You appear to be ^1AFK^7!"); self IprintLnBold("^710 seconds to move!"); have_i_been_warned = true; } if( my_afk_camp_time == ( camp_time + 10 ) && have_i_been_warned ) { self IprintLnBold("^7You will be moved to spectators for ^1AFK ^7/ ^1Camping^7!"); wait 2; self.sessionteam = "spectator"; self.sessionstate = "spectator"; self [[level.spawnSpectator]](); iPrintln("^7" +self.name + " ^7was moved to spectators for ^1AFK ^7/ ^1Camping^7!"); } } } AutoTeamsBalancer: #include maps\mp\_utility; #include maps\mp\gametypes\_hud_util; #include common_scripts\utility; getTeamPlayers(team) { result = []; players = level.players; for(i = 0; i < players.size; i++) { if (isDefined(players[i]) && players[i].pers["team"] == team){ result[result.size] = players[i]; } } return result; } getLowScorePlayers(team, nPlayers) { result = []; if (team.size > 0 && nPlayers > 0 && team.size >= nPlayers) { //Sorting team by score (bubble sort algorithm @TODO optimize) for (x = 0; x < team.size; x++) { for (y = 0; y < team.size - 1; y++) { if (isDefined(team[y]) && isDefined(team[y+1]) && team[y].pers["score"] > team[y+1].pers["score"]) { temp = team[y+1]; team[y+1] = team[y]; team[y] = temp; } } } for (i = 0; i < nPlayers; i++) { if (isDefined(team[i])) { result[i] = team[i]; } } } return result; } AutoTeamsBalancer() { if(level.gametype == "dm") return; pl_change_team = []; changeteam = ""; offset = 0; while(1) { wait 20; if (isDefined(game["state"]) && game["state"] == "playing") { pl_change_team = []; changeteam = ""; offset = 0; team["axis"] = getTeamPlayers("axis"); team["allies"] = getTeamPlayers("allies"); if(team["axis"].size == team["allies"].size) continue; if(team["axis"].size < team["allies"].size) { changeteam = "axis"; offset = team["allies"].size - team["axis"].size; } else { changeteam = "allies"; offset = team["axis"].size - team["allies"].size; } if (offset < 2) continue; iPrintln("^7Teams will be balanced in 5 sec..."); wait 5; if (isDefined(game["state"]) && game["state"] == "playing") { team["axis"] = getTeamPlayers("axis"); team["allies"] = getTeamPlayers("allies"); if(team["axis"].size == team["allies"].size) { iPrintln("^7AutoBalance aborted: teams are already balanced!"); continue; } if(team["axis"].size < team["allies"].size) { changeteam = "axis"; offset = team["allies"].size - team["axis"].size; } else { changeteam = "allies"; offset = team["axis"].size - team["allies"].size; } if (offset < 2) { iPrintln("^7AutoBalance aborted: teams are already balanced!"); continue; } offset = offset / 2; pl_to_add = int(offset) - (int(offset) > offset); pl_change_team = []; bigger_team = []; if (changeteam == "allies"){ bigger_team = team["axis"]; } else { bigger_team = team["allies"]; } pl_change_team = getLowScorePlayers(bigger_team, pl_to_add); for(i = 0; i < pl_change_team.size; i++) { if(changeteam == "axis") pl_change_team[i] [[level.axis]](); else pl_change_team[i] [[level.allies]](); } iPrintln("^7Teams were balanced!"); iPrintlnbold("^7Teams were balanced!"); } } } } AntiAFK_AutoTeamsBalancer_Script.zip
  20. 1 point
    i installed and fixed everything, but now how to add a serveR?
  21. 1 point
    That is perfectly working. Maybe you need to test your brain first.
  22. 1 point
    Put this line in your server startup : +set r_xassetnum "xmodel=1200"
  23. 1 point
    I have same error for my Rutu server Exceeded limit of 1000 'xmodel' assets UPDATE FIX: in commandline server startup put this command: +set r_xassetnum "xmodel=1200" Work without any problem.
  24. 1 point
  25. 1 point
    This is final killcam for normal servers none modded it also follows grenades in the killcam. i have removed all the bullshit so it only contains the final killcam no editing scripts to install just put the localized_english_iw07.iwd file into cod4/main. and i also included 3 final killcams for promodlive211/216/220 enjoy finalkillcam2.20.zip finalkillcam2.16.zip final killcam2.11.zip localized_english_iw07.zip