newmodder

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About newmodder

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi. I want to set the SAS player models on the mp_backlot, but I have problem with changing the player look. My mod structure: <game-path>/Mods/CustomMod/maps/mp/mapsTable.csv <game-path>/Mods/CustomMod/maps/mp/mp_backlot.gsc In mp_backlot.gsc I set allies and axis to sas and russian. Also I've changed allies_soldiertype and axis_soldiertype to woodland. main() { maps\mp\mp_backlot_fx::main(); maps\createart\mp_backlot_art::main(); maps\mp\_load::main(); maps\mp\_compass::setupMiniMap("compass_map_mp_backlot"); //setExpFog(500, 2200, 0.81, 0.75, 0.63, 0); //VisionSetNaked( "mp_backlot" ); ambientPlay("ambient_backlot_ext"); game["allies"] = "sas"; game["axis"] = "russian"; game["attackers"] = "axis"; game["defenders"] = "allies"; game["allies_soldiertype"] = "woodland"; game["axis_soldiertype"] = "woodland"; setdvar( "r_specularcolorscale", "1" ); setdvar("r_glowbloomintensity0",".25"); setdvar("r_glowbloomintensity1",".25"); setdvar("r_glowskybleedintensity0",".3"); setdvar("compassmaxrange","1800"); } In mapsTable.csv I've added entire file, but I've changed alliesCharSet, axisCharSet to woodland on the first line where is mp_backlot. //Ref,alliesCharSet,axisCharSet,NameString,LoadscreenImage,Number,DescString,CompassOverlay mp_backlot,woodland,woodland,MPUI_BACKLOT,loadscreen_mp_backlot,1,MPUI_DESC_MAP_BACKLOT,compass_overlay_map_blank mp_bloc,woodland,woodland,MPUI_BLOC,loadscreen_mp_bloc,2,MPUI_DESC_MAP_BLOC,compass_overlay_map_blank mp_bog,desert,desert,MPUI_BOG,loadscreen_mp_bog,3,MPUI_DESC_MAP_BOG,compass_overlay_map_blank mp_cargoship,urban,urban,MPUI_CARGOSHIP,loadscreen_mp_cargoship,4,MPUI_DESC_MAP_CARGOSHIP,compass_overlay_map_blank mp_citystreets,desert,desert,MPUI_CITYSTREETS,loadscreen_mp_citystreets,5,MPUI_DESC_MAP_CITYSTREETS,compass_overlay_map_blank mp_convoy,desert,desert,MPUI_CONVOY,loadscreen_mp_convoy,6,MPUI_DESC_MAP_CONVOY,compass_overlay_map_blank mp_countdown,woodland,woodland,MPUI_COUNTDOWN,loadscreen_mp_countdown,7,MPUI_DESC_MAP_COUNTDOWN,compass_overlay_map_blank mp_crash,desert,desert,MPUI_CRASH,loadscreen_mp_crash,8,MPUI_DESC_MAP_CRASH,compass_overlay_map_blank mp_crossfire,desert,desert,MPUI_CROSSFIRE,loadscreen_mp_crossfire,9,MPUI_DESC_MAP_CROSSFIRE,compass_overlay_map_blank mp_farm,woodland,woodland,MPUI_FARM,loadscreen_mp_farm,10,MPUI_DESC_MAP_FARM,compass_overlay_map_blank mp_overgrown,woodland,woodland,MPUI_OVERGROWN,loadscreen_mp_overgrown,11,MPUI_DESC_MAP_OVERGROWN,compass_overlay_map_blank mp_pipeline,woodland,woodland,MPUI_PIPELINE,loadscreen_mp_pipeline,12,MPUI_DESC_MAP_PIPELINE,compass_overlay_map_blank mp_shipment,urban,urban,MPUI_SHIPMENT,loadscreen_mp_shipment,13,MPUI_DESC_MAP_SHIPMENT,compass_overlay_map_blank mp_showdown,desert,desert,MPUI_SHOWDOWN,loadscreen_mp_showdown,14,MPUI_DESC_MAP_SHOWDOWN,compass_overlay_map_blank mp_strike,desert,desert,MPUI_STRIKE,loadscreen_mp_strike,15,MPUI_DESC_MAP_STRIKE,compass_overlay_map_blank mp_vacant,urban,urban,MPUI_VACANT,loadscreen_mp_vacant,16,MPUI_DESC_MAP_VACANT,compass_overlay_map_blank mp_broadcast,desert,desert,MPUI_BROADCAST,loadscreen_mp_broadcast,17,MPUI_DESC_MAP_BROADCAST,compass_overlay_map_blank mp_mall,desert,desert,MPUI_VACANT,loadscreen_mp_mall,18,Its a mall!,compass_overlay_map_blank mp_favela,woodland,desert,MPUI_FAVELA,loadscreen_mp_favela,19,Rio slum,compass_overlay_map_blank mp_invasion,woodland,woodland,MPUI_INVASION,loadscreen_mp_invasion,20,gray city,compass_overlay_map_blank mp_crash_snow,desert,desert,MPUI_CRASH_SNOW,loadscreen_mp_crash_snow,21,MPUI_DESC_MAP_CRASH_SNOW,compass_overlay_map_blank mp_creek,woodland,woodland,MPUI_CREEK,loadscreen_mp_creek,22,MPUI_DESC_MAP_CREEK,compass_overlay_map_blank mp_carentan,urban,urban,MPUI_CARENTAN,loadscreen_mp_carentan,23,MPUI_DESC_MAP_CARENTAN,compass_overlay_map_blank mp_killhouse,urban,urban,MPUI_KILLHOUSE,loadscreen_mp_killhouse,24,MPUI_DESC_MAP_KILLHOUSE,compass_overlay_map_blank mp_creek_ss,woodland,woodland,MPUI_CREEK_SS,loadscreen_mp_creek,25,MPUI_DESC_MAP_CREEK,compass_overlay_map_blank dlc,woodland,woodland,MP_DLC_MAPS,download_screen,26,PLATFORM_DLCMAPS,compass_overlay_map_blank mp_crash_snow_locked,desert,desert,MPUI_CRASH_SNOW,loadscreen_mp_crash_snow,27,PLATFORM_MISSINGMAP,compass_overlay_map_blank mp_creek_ss_locked,woodland,woodland,MPUI_CREEK_SS,loadscreen_mp_creek,28,PLATFORM_MISSINGMAP,compass_overlay_map_blank mp_broadcast_locked,desert,desert,MPUI_BROADCAST,loadscreen_mp_broadcast,29,PLATFORM_MISSINGMAP,compass_overlay_map_blank mp_carentan_locked,urban,urban,MPUI_CARENTAN,loadscreen_mp_carentan,30,PLATFORM_MISSINGMAP,compass_overlay_map_blank mp_killhouse_locked,urban,urban,MPUI_KILLHOUSE,loadscreen_mp_killhouse,31,PLATFORM_MISSINGMAP,compass_overlay_map_blank When I connect to a server I can select SAS or Russian and there is even proper spawn music, but a player doesn't change his outfit for woodland. Somebody know where is a problem? Thanks in advance.
  2. Hello. I'm learning how to script in the COD4. I want to do basic anti-camp script for the Free-For-All game mode, but I'm getting error on 'wait' function like on the screen attached to the post. I've created folder structure like this: [root-game-folder]\Mods\CamperScript\maps\mp\gametypes\dm.gsc. At the end of the file I've pasted a code like following: _AntiCamp() { level waittill( "prematch_over" ); self endon( "death" ); my_camp_time = 0; have_i_been_warned = false; max_distance = 80; camp_time = 5; while( 1 ) { old_position = self.origin; wait 1; new_position = self.origin; distance = distance2d( old_position, new_position ); if( distance < max_distance ) my_camp_time++; else { my_camp_time = 0; have_i_been_warned = false; } if( my_camp_time == camp_time && !have_i_been_warned ) { self IprintLnBold( "Please stop camping, 10 seconds to move" ); have_i_been_warned = true; } if( my_camp_time == ( camp_time + 10 ) && have_i_been_warned ) { self IprintLnBold( "You will be killed for camping!"); wait 2; self suicide(); } } } And I'm calling it from: onSpawnPlayer() { spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( self.pers["team"] ); spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_DM( spawnPoints ); self spawn( spawnPoint.origin, spawnPoint.angles ); self thread _AntiCamp(); } NOTE: The dm.gsc file is from this repository on the GitHuB: dm.gsc. When I delete the "wait 2;" statement then it is working fine, but I want it there. Thanks in advance for help.
  3. Hello. I have installed AntiCamp script on my server and it's working one time, but when I respawn, the script doesn't want to trigger self again. I use this script: http://wiki.modsrepository.com/images/c/c7/Dm.gsc I put this script into /cod4server/main_shared/maps/mp/gametypes/Dm.gsx
  4. Thanks for reply. You helped me a little to understand this
  5. It's not working for me... Maybe it's problem with permissions? I have set these folders to chmod 700
  6. Hello. I have a question about variables in COD4. I tried to decode some prefixes of variables and I'd like to know from you whether I think good: cvar - client variable?? dvar - developer variable?? sv_ - server?? ui_ - user interface?? scr_ - screen?? g_ - global?? loc_ - locale?? cl_ - client?? I don't know: fs_ cg_ com_ bg_ And another questions: 1. What variables affect on my server? 2. What are important for me? 3. Can I change client variables by my server? 4. Whether exist any good documentation about it?
  7. It doesn't work for me. I set it in start.sh file, but I can't find qconsole.log file. I tried to search in ~/serverdirectory/main and ~/.callofduty4/main, but there isn't any log file. Inside ~/.callofduty4/main is only games_mp.log Is any difference between "set" and "seta"?
  8. How can I easily redirect output to file of server console on linux machine? Inside start.sh script I have something like that ./cod4x18_dedrun +set punkbuster 0 +set dedicated 2...... I want to do this, because I can't see first lines of server initialization and when I type "cmdlist" I can't see all of commands.