PureTryOut

Donator
  • Content Count

    152
  • Donations

    0.00 EUR 
  • Joined

  • Last visited

Posts posted by PureTryOut


  1. After your post on Reddit, I looked it up and at least found a way to enable perk restrictions (without any modification at all!). I knew it was possible, just forgot the dvars ;)

    So the following dvar's make you able to control what players can use and what they can't:


    // limits the number of players that can choose each class type
    //******************************************************************************
    set class_assault_limit 99
    set class_specops_limit 99
    set class_heavygunner_limit 99
    set class_demolitions_limit 99
    set class_sniper_limit 99

    //******************************************************************************
    // perks
    //******************************************************************************
    set perk_allow_specialty_parabolic 1
    set perk_allow_specialty_gpsjammer 1
    set perk_allow_specialty_holdbreath 1
    set perk_allow_specialty_quieter 1
    set perk_allow_specialty_longersprint 1
    set perk_allow_specialty_detectexplosive 1
    set perk_allow_specialty_explosivedamage 1
    set perk_allow_specialty_pistoldeath 1
    set perk_allow_specialty_grenadepulldeath 1
    set perk_allow_specialty_bulletdamage 1
    set perk_allow_specialty_bulletpenetration 1
    set perk_allow_specialty_bulletaccuracy 1
    set perk_allow_specialty_rof 1
    set perk_allow_specialty_fastreload 1
    set perk_allow_specialty_extraammo 1
    set perk_allow_specialty_armorvest 1
    set perk_allow_specialty_fraggrenade 1
    set perk_allow_specialty_specialgrenade 1
    set perk_allow_c4_mp 1
    set perk_allow_claymore_mp 1
    set perk_allow_rpg_mp 1

    //******************************************************************************
    // assault class default loadout
    //******************************************************************************
    set class_assault_primary m16
    set class_assault_primary_attachment gl
    set class_assault_secondary beretta
    set class_assault_secondary_attachment none
    set class_assault_perk1 specialty_null
    set class_assault_perk2 specialty_bulletdamage
    set class_assault_perk3 specialty_longersprint
    set class_assault_grenade concussion_grenade
    set class_assault_camo camo_none
    set class_assault_frags 1
    set class_assault_special 1

    //******************************************************************************
    // specops class default loadout
    //******************************************************************************
    set class_specops_primary mp5
    set class_specops_primary_attachment none
    set class_specops_secondary usp
    set class_specops_secondary_attachment silencer
    set class_specops_perk1 c4_mp
    set class_specops_perk2 specialty_explosivedamage
    set class_specops_perk3 specialty_bulletaccuracy
    set class_specops_grenade flash_grenade
    set class_specops_camo camo_none
    set class_specops_frags 1
    set class_specops_special 1

    //******************************************************************************
    // heavygunner class default loadout
    //******************************************************************************
    set class_heavygunner_primary saw
    set class_heavygunner_primary_attachment none
    set class_heavygunner_secondary usp
    set class_heavygunner_secondary_attachment none
    set class_heavygunner_perk1 specialty_specialgrenade
    set class_heavygunner_perk2 specialty_armorvest
    set class_heavygunner_perk3 specialty_bulletpenetration
    set class_heavygunner_grenade concussion_grenade
    set class_heavygunner_camo camo_none
    set class_heavygunner_frags 1
    set class_heavygunner_special 1

    //******************************************************************************
    // demolitions class default loadout
    //******************************************************************************
    set class_demolitions_primary winchester1200
    set class_demolitions_primary_attachment none
    set class_demolitions_secondary beretta
    set class_demolitions_secondary_attachment none
    set class_demolitions_perk1 rpg_mp
    set class_demolitions_perk2 specialty_explosivedamage
    set class_demolitions_perk3 specialty_longersprint
    set class_demolitions_grenade smoke_grenade
    set class_demolitions_camo camo_none
    set class_demolitions_frags 1
    set class_demolitions_special 1

    //******************************************************************************
    // sniper class default loadout
    //******************************************************************************
    set class_sniper_primary m40a3
    set class_sniper_primary_attachment none
    set class_sniper_secondary beretta
    set class_sniper_secondary_attachment silencer
    set class_sniper_perk1 specialty_specialgrenade
    set class_sniper_perk2 specialty_bulletdamage
    set class_sniper_perk3 specialty_bulletpenetration
    set class_sniper_grenade flash_grenade
    set class_sniper_camo camo_none
    set class_sniper_frags 1
    set class_sniper_special 1

    set class_assault_movespeed 0.95
    set class_specops_movespeed 1.00
    set class_heavygunner_movespeed 0.875
    set class_demolitions_movespeed 1.00
    set class_sniper_movespeed 1.00

    set scr_enable_nightvision 1
    set scr_enable_music 1
    set scr_enable_hiticon 1
    //******************************************************************************

    About the final killcam. Search for a final killcam mod on Google (I use Final killcam 2.3, since 2.4 is a bit buggy), and download it. Open the .rar using an archiver like 7-zip or Winrar, and extract the .iwd file you find in there.

    Then open that .iwd file with an archiver, and extract the "maps" folder. Now create the localized_english_iw07.iwd like I told you on Reddit, and put the maps folder you just extracted in it.

    Now upload localized_english_iw07.iwd and run the server. As you will see, the server now has final killcam (without players needing to download anything!).

    Both of these things don't need any dvar like sv_authorizemode 0 and sv_showasranked 1, although I would advise you to use sv_authorizemode 0 since it enables cracked clients to join (which a lot of people use, but don't worry about security, Cod4X uses it's own authentication system).


  2. I do have the following files modified:

    localized_english_iw07.iwd
    maps
    mp
    gametypes
    dm.gsc
    dom.gsc
    sd.gsc
    war.gsc
    _dBots.gsc
    _finalkillcam.gsc
    _killcam.gsc
    _rank.gsc
    _teams.gsc

    So yes I do have some files changed talking about killcam, but they add a final killcam, and have (as far as I know) nothing to do with the regular killcams...


  3. I've noticed that I get lots of errors in my console:

    ******* script runtime error *******
    cannot cast undefined to bool: (file 'maps/mp/gametypes/_globallogic.gsc', line 5133)
    if ( !self.cancelKillcam && doKillcam && level.killcam )
    *
    called from:
    (file 'maps/mp/gametypes/_callbacksetup.gsc', line 69)
    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
    *
    started from:
    (file 'maps/mp/gametypes/_globallogic.gsc', line 5215)
    wait desiredDelay - waitedTime;
    *
    ************************************

    Looking at it, it looks like it happens whenever a killcam plays. This is not a problem as it does not seem to do anything in-game, but I would like to clear up the console.

    What is happening, and am I somehow the only one?

    EDIT: Solved it, I messaged the original creator and he created a patch for me which fixed it.


  4. I've been changing settings and things on my server recently using custom .gsc files that overwrite stock ones in localized_english_iw07.iwd

    It worked great so far, added and changed a few things without problems.

    Now i'm trying to change the weapon damage of the grenade launcher, because in my opinion it is overpowered and people abuse it, but I don't want to disable it. I just can't find in what file it is located.

    I've tried changing "playerDamage" in weaponname_gl_mp (located in iw_11.iwd), but it did nothing.

    Can somebody tell me where I can find it? Thanks in advance!