Results 1 to 10 of 24

Thread: CoD4 - basics

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by BlancO View Post
    I don't want to run server from main folder. After setting "+set fs_homepath "/home/cod4/server"" console_mp.log is in fs_game folder so I think it's ok.

    Will the "q3dirtravfix.so" from CoD2 work in CoD4?

    What if I will check bullettrace before calling damage function?

    PHP Code:
    /*================
    Called when a player has taken damage.
    self is the player that took damage.
    ================*/
    CodeCallback_PlayerDamage(eInflictoreAttackeriDamageiDFlagssMeansOfDeathsWeaponvPointvDirsHitLoctimeOffset)
    {
        
    // Check for bulletTrace
        
    ...
        ...
        ...

        if(
    trace)
            return;
        
    //

        
    self endon("disconnect");
        [[
    level.callbackPlayerDamage]](eInflictoreAttackeriDamageiDFlagssMeansOfDeathsWeaponvPointvDirsHitLoctimeOffset);

    What do you mean what if you check bullettrace before calling damage? What are you trying to do? If you are trying to stop Deep Impact/specialty_bulletpenetration, it wont work. You can't intercept the depth of impact of Deep Impact because, as I said, it is hard coded, and it's done in the engine, not in script. The only perks which are done in script are:

    specialty_bulletdamage
    specialty_armorvest
    specialty_explosivedamage

    The script for handling those perks can be found in maps\mp\gametypes\_class::cac_modified_damage(). All the other perks are done in the engine, and they are hard coded.
    Last edited by Tally; 22nd September 2013 at 23:38.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •