Call of Duty 4: Modern Warfare

Hier findest Du einige Scripte, die ich mithilfe anderer grossartiger Scripter geändert und zusammengetragen habe. Desweiteren finden sich hier diverse Anleitungen, die für Serveradmins gedacht sind.

Waffen aus Map entfernen

Es gibt in einigen Maps teilweise riesige Waffenarsenale, die der Mapper versteckt hat. Das kann bei einem Rifle only Server natürlich sehr störend sein, deshalb zeige ich, wie man die Waffen entfernen kann. Das Script basiert auf der Idee von bangingbernie aus dem [OL] Forum.

Zuerst muss man die map.iwd öffnen und sich das Mapscript extrahieren. Man findet es unter /maps/mp/ Die Datei heisst genauso, wie die Map (= Konsolenname). Dem Mapscript fügt man nun den Aufruf zu einer neuen Datei hinzu und speichert es unter obiger Ordnerstruktur auf dem Server wieder. In dasselbe Verzeichnis kommt nun eine neue Datei mit folgendem Inhalt:

_remove_weapons.gsc

Code eingefügt.
main(){
 
    Remove_ak47_mp();
    Remove_ak47_acog_mp();
    Remove_ak47_gl_mp();
    Remove_gl_ak47_mp();
    Remove_ak47_reflex_mp();
    Remove_ak47_silencer_mp();
    Remove_ak74u_mp();
    Remove_ak74u_acog_mp();
    Remove_ak74u_reflex_mp();
    Remove_ak74u_silencer_mp();
    Remove_aw50_acog_mp();
    Remove_aw50_mp();
    Remove_barrett_acog_mp();
    Remove_barrett_mp();
    Remove_beretta_mp();
    Remove_beretta_silencer_mp();
    Remove_colt45_mp();
    Remove_colt45_silencer_mp();
    Remove_concussion_grenade_mp();
    Remove_dragunov_acog_mp();
    Remove_dragunov_mp();
    Remove_flash_grenade_mp();
    Remove_frag_grenade_mp();
    Remove_frag_no_cook_mp();
    Remove_frag_grenade_short_mp();
    Remove_g3_mp();
    Remove_g3_acog_mp();
    Remove_g3_reflex_mp();
    Remove_g3_silencer_mp();
    Remove_g3_gl_mp();
    Remove_gl_g3_mp();
    Remove_g36c_mp();
    Remove_g36c_acog_mp();
    Remove_g36c_reflex_mp();
    Remove_g36c_silencer_mp();
    Remove_g36c_gl_mp();
    Remove_gl_g36c_mp();
    Remove_m4_mp();
    Remove_m4_acog_mp();
    Remove_m4_reflex_mp();
    Remove_m4_silencer_mp();
    Remove_m4_gl_mp();
    Remove_gl_m4_mp();
    Remove_m14_mp();
    Remove_m14_acog_mp();    
    Remove_m14_reflex_mp();
    Remove_m14_silencer_mp();
    Remove_m14_gl_mp();
    Remove_gl_m14_mp();
    Remove_m16_mp();
    Remove_m16_acog_mp();
    Remove_m16_reflex_mp();
    Remove_m16_silencer_mp();
    Remove_m16_gl_mp();
    Remove_gl_m16_mp();
    Remove_m21_acog_mp();
    Remove_m21_mp();
    Remove_smokegrenade_mp();
    Remove_m40a3_acog_mp();
    Remove_m40a3_mp();
    Remove_m60e4_grip_mp();
    Remove_m60e4_acog_mp();
    Remove_m60e4_mp();
    Remove_m60e4_reflex_mp();
    Remove_m1014_grip_mp();
    Remove_m1014_mp();
    Remove_m1014_reflex_mp();
    Remove_mp_5_acog_mp();
    Remove_mp_5_mp();
    Remove_mp_5_reflex_mp();
    Remove_mp_5_silencer_mp();
    Remove_p90_acog_mp();
    Remove_p90_mp();
    Remove_p90_reflex_mp();
    Remove_p90_silencer_mp();
    Remove_remington700_acog_mp();
    Remove_remington700_mp();
    Remove_rpd_acog_mp();
    Remove_rpd_mp();
    Remove_rpd_grip_mp();
    Remove_rpd_reflex_mp();
    Remove_saw_acog_mp();
    Remove_saw_mp();
    Remove_saw_reflex_mp();
    Remove_saw_grip_mp();
    Remove_saw_bipod_crouch_mp();
    Remove_saw_bipod_prone_mp();
    Remove_saw_bipod_stand_mp();
    Remove_skorpion_acog_mp();
    Remove_skorpion_mp();
    Remove_skorpion_silencer_mp();
    Remove_skorpion_reflex_mp();
    Remove_usp_mp();
    Remove_usp_silencer_mp();
    Remove_uzi_acog_mp();
    Remove_uzi_mp();
    Remove_uzi_reflex_mp();
    Remove_uzi_silencer_mp();
    Remove_deserteaglegold_mp();
    Remove_deserteagle_mp();
    Remove_winchester1200_grip_mp();
    Remove_winchester1200_reflex_mp();
    Remove_winchester1200_mp();
    Remove_mp_44_mp();
    Remove_c4_mp();
    Remove_rpg_mp();
    Remove_knife_mp();
    Remove_claymore_mp();
}
 
Remove_ak47_mp(){
 
    weapons = getentarray("weapon_ak47_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak47_acog_mp(){
 
    weapons = getentarray("weapon_ak47_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak47_gl_mp(){
 
    weapons = getentarray("weapon_ak47_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_ak47_mp(){
 
    weapons = getentarray("weapon_gl_ak47_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak47_reflex_mp(){
 
    weapons = getentarray("weapon_ak47_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak47_silencer_mp(){
 
    weapons = getentarray("weapon_ak47_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak74u_mp(){
 
    weapons = getentarray("weapon_ak74u_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak74u_acog_mp(){
 
    weapons = getentarray("weapon_ak74u_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak74u_reflex_mp(){
 
    weapons = getentarray("weapon_ak74u_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_ak74u_silencer_mp(){
 
    weapons = getentarray("weapon_ak74u_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_aw50_acog_mp(){
 
    weapons = getentarray("weapon_aw50_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_aw50_mp(){
 
    weapons = getentarray("weapon_aw50_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_barrett_acog_mp(){
 
    weapons = getentarray("weapon_barrett_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_barrett_mp(){
 
    weapons = getentarray("weapon_barrett_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_beretta_mp(){
 
    weapons = getentarray("weapon_beretta_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_beretta_silencer_mp(){
 
    weapons = getentarray("weapon_beretta_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_colt45_mp(){
 
    weapons = getentarray("weapon_colt45_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_colt45_silencer_mp(){
 
    weapons = getentarray("weapon_colt45_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_concussion_grenade_mp(){
 
    weapons = getentarray("weapon_concussion_grenade_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_dragunov_acog_mp(){
 
    weapons = getentarray("weapon_dragunov_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_dragunov_mp(){
 
    weapons = getentarray("weapon_dragunov_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_flash_grenade_mp(){
 
    weapons = getentarray("weapon_flash_grenade_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_frag_grenade_mp(){
 
    weapons = getentarray("weapon_frag_grenade_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_frag_no_cook_mp(){
 
    weapons = getentarray("weapon_frag_no_cook_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_frag_grenade_short_mp(){
 
    weapons = getentarray("weapon_frag_grenade_short_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g3_mp(){
 
    weapons = getentarray("weapon_g3_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g3_acog_mp(){
 
    weapons = getentarray("weapon_g3_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g3_reflex_mp(){
 
    weapons = getentarray("weapon_g3_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g3_silencer_mp(){
 
    weapons = getentarray("weapon_g3_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g3_gl_mp(){
 
    weapons = getentarray("weapon_g3_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_g3_mp(){
 
    weapons = getentarray("weapon_gl_g3_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g36c_mp(){
 
    weapons = getentarray("weapon_g36c_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g36c_acog_mp(){
 
    weapons = getentarray("weapon_g36c_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g36c_reflex_mp(){
 
    weapons = getentarray("weapon_g36c_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g36c_silencer_mp(){
 
    weapons = getentarray("weapon_g36c_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_g36c_gl_mp(){
 
    weapons = getentarray("weapon_g36c_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_g36c_mp(){
 
    weapons = getentarray("weapon_gl_g36c_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m4_mp(){
 
    weapons = getentarray("weapon_m4_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m4_acog_mp(){
 
    weapons = getentarray("weapon_m4_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m4_reflex_mp(){
 
    weapons = getentarray("weapon_m4_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m4_silencer_mp(){
 
    weapons = getentarray("weapon_m4_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m4_gl_mp(){
 
    weapons = getentarray("weapon_m4_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_m4_mp(){
 
    weapons = getentarray("weapon_gl_m4_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m14_mp(){
 
    weapons = getentarray("weapon_m14_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m14_acog_mp(){
 
    weapons = getentarray("weapon_m14_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m14_reflex_mp(){
 
    weapons = getentarray("weapon_m14_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m14_silencer_mp(){
 
    weapons = getentarray("weapon_m14_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m14_gl_mp(){
 
    weapons = getentarray("weapon_m14_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_m14_mp(){
 
    weapons = getentarray("weapon_gl_m14_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m16_mp(){
 
    weapons = getentarray("weapon_m16_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m16_acog_mp(){
 
    weapons = getentarray("weapon_m16_acog_mpp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m16_reflex_mp(){
 
    weapons = getentarray("weapon_m16_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m16_silencer_mp(){
 
    weapons = getentarray("weapon_m16_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m16_gl_mp(){
 
    weapons = getentarray("weapon_m16_gl_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_gl_m16_mp(){
 
    weapons = getentarray("weapon_gl_m16_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m21_acog_mp(){
 
    weapons = getentarray("weapon_m21_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m21_mp(){
 
    weapons = getentarray("weapon_m21_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_smokegrenade_mp(){
 
    weapons = getentarray("weapon_smokegrenade_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m40a3_acog_mp(){
 
    weapons = getentarray("weapon_m40a3_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m40a3_mp(){
 
    weapons = getentarray("weapon_m40a3_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m60e4_grip_mp(){
 
    weapons = getentarray("weapon_m60e4_grip_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m60e4_acog_mp(){
 
    weapons = getentarray("weapon_m60e4_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m60e4_mp(){
 
    weapons = getentarray("weapon_m60e4_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m60e4_reflex_mp(){
 
    weapons = getentarray("weapon_m60e4_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m1014_grip_mp(){
 
    weapons = getentarray("weapon_m1014_grip_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m1014_mp(){
 
    weapons = getentarray("weapon_m1014_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_m1014_reflex_mp(){
 
    weapons = getentarray("weapon_m1014_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_mp_5_acog_mp(){
 
    weapons = getentarray("weapon_mp_5_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_mp_5_mp(){
 
    weapons = getentarray("weapon_mp_5_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_mp_5_reflex_mp(){
 
    weapons = getentarray("weapon_mp_5_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_mp_5_silencer_mp(){
 
    weapons = getentarray("weapon_mp_5_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_p90_acog_mp(){
 
    weapons = getentarray("weapon_p90_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_p90_mp(){
 
    weapons = getentarray("weapon_p90_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_p90_reflex_mp(){
 
    weapons = getentarray("weapon_p90_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_p90_silencer_mp(){
 
    weapons = getentarray("weapon_p90_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_remington700_acog_mp(){
 
    weapons = getentarray("weapon_remington700_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_remington700_mp(){
 
    weapons = getentarray("weapon_remington700_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_rpd_acog_mp(){
 
    weapons = getentarray("weapon_rpd_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_rpd_mp(){
 
    weapons = getentarray("weapon_rpd_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_rpd_grip_mp(){
 
    weapons = getentarray("weapon_rpd_grip_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_rpd_reflex_mp(){
 
    weapons = getentarray("weapon_rpd_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_acog_mp(){
 
    weapons = getentarray("weapon_saw_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_mp(){
 
    weapons = getentarray("weapon_saw_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_reflex_mp(){
 
    weapons = getentarray("weapon_saw_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_grip_mp(){
 
    weapons = getentarray("weapon_saw_grip_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_bipod_crouch_mp(){
 
    weapons = getentarray("weapon_saw_bipod_crouch_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_bipod_prone_mp(){
 
    weapons = getentarray("weapon_saw_bipod_prone_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_saw_bipod_stand_mp(){
 
    weapons = getentarray("weapon_saw_bipod_stand_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_skorpion_acog_mp(){
 
    weapons = getentarray("weapon_skorpion_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_skorpion_mp(){
 
    weapons = getentarray("weapon_skorpion_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_skorpion_silencer_mp(){
 
    weapons = getentarray("weapon_skorpion_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_skorpion_reflex_mp(){
 
    weapons = getentarray("weapon_skorpion_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_usp_mp(){
 
    weapons = getentarray("weapon_usp_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_usp_silencer_mp(){
 
    weapons = getentarray("weapon_usp_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_uzi_acog_mp(){
 
    weapons = getentarray("weapon_uzi_acog_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_uzi_mp(){
 
    weapons = getentarray("weapon_uzi_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_uzi_reflex_mp(){
 
    weapons = getentarray("weapon_uzi_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_uzi_silencer_mp(){
 
    weapons = getentarray("weapon_uzi_silencer_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_deserteaglegold_mp(){
 
    weapons = getentarray("weapon_deserteaglegold_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_deserteagle_mp(){
 
    weapons = getentarray("weapon_deserteagle_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_winchester1200_grip_mp(){
 
    weapons = getentarray("weapon_winchester1200_grip_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_winchester1200_reflex_mp(){
 
    weapons = getentarray("weapon_winchester1200_reflex_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_winchester1200_mp(){
 
    weapons = getentarray("weapon_winchester1200_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_mp_44_mp(){
 
    weapons = getentarray("weapon_mp_44_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_c4_mp(){
 
    weapons = getentarray("weapon_c4_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_rpg_mp(){
 
    weapons = getentarray("weapon_rpg_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_knife_mp(){
 
    weapons = getentarray("weapon_knife_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}
 
Remove_claymore_mp(){
 
    weapons = getentarray("weapon_claymore_mp","classname");
     
    for(i=0;i<weapons.size;i++){
     
        weapons[i] delete();
    }
}

und das geänderte Mapscript, hier im Beispiel mp_pavlov_v2.gsc:

mp_pavlov_v2.gsc

Code eingefügt.
main()
{
    maps\mp\_load::main();
    maps\mp\_explosive_barrels::main();
    maps\mp\_compass::setupMiniMap("compass_map_mp_pavlov_v2");
 
     level._effect["weather"] = loadfx ("weather/snow_light_mp_bloc");
    maps\mp\_fx::loopfx("weather", (-392,-1800,264),.7);
    level._effect["weather"] = loadfx ("weather/snow_light_mp_bloc");
    maps\mp\_fx::loopfx("weather", (-2326,-1231,264),.7);
    level._effect["weather"] = loadfx ("weather/snow_light_mp_bloc");
    maps\mp\_fx::loopfx("weather", (-1344,-4880,764),.7);
    level._effect["fire"] = loadfx ("fire/firelp_barrel_pm");
    maps\mp\_fx::loopfx("fire", (-1096,-2260,514), 3);
    level._effect["smoke"] = loadfx ("smoke/battlefield_smokebank_bog_a");
    maps\mp\_fx::loopfx("smoke", (-207,-1544,4), 3);
    level._effect["smoke"] = loadfx ("smoke/battlefield_smokebank_bog_a");
    maps\mp\_fx::loopfx("smoke", (-2258,-2867,18), 3);
    level._effect["smoke"] = loadfx ("smoke/battlefield_smokebank_bog_a");
    maps\mp\_fx::loopfx("smoke", (-2126,-1638,50), 3);
 
    ambientPlay("ambient_overgrown_day");
 
    game["allies"] = "sas";
    game["axis"] = "russian";
    game["attackers"] = "axis";
    game["defenders"] = "allies";
    game["allies_soldiertype"] = "woodland";
    game["axis_soldiertype"] = "woodland";
     
    // Remove Weapons
        thread maps\mp\_remove_weapons::main();
 
    setdvar( "r_specularcolorscale", "1" );
 
    setdvar("r_glowbloomintensity0",".25");
    setdvar("r_glowbloomintensity1",".25");
    setdvar("r_glowskybleedintensity0",".3");
    setdvar("compassmaxrange","2200");
}

Zurück