Results 1 to 4 of 4

Thread: Random scripting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts

    Random scripting

    This thread has no specific topic, you can add here stuff that you found out, maybe some workarounds or smth like that

    i tested out some funkctions i found in the cod2_mp.exe with a HEX editor

    clientannouncer( player , "TEXT" ); is the same as player iprintLnBold( "TEXT" );

    announcer( "TEXT" ); >>> iPrintLnBold( "TEXT" );

    grenadeExplosionEffect( position ); >>> plays the grenade fx + sound on the position, no need to precache everygrenade fx anylonger

    turret useBy( player ); >>> player enters the turret

    soundFade( fadetime ) >>> working, but didnt tried to fade a sound yet

    PHP Code:
    modelHasTagmodel tag )
    {
        
    parts getNumPartsmodel ); //return bones count

        
    for( parts i++ )
        {
            if( 
    getPartNamemodel ) == tag //return bones_name by ID
                
    return true;
        }

        
    assertExfalse "Model [" model "] has no bone [" tag "] included!" ); //script error with the given message

    PHP Code:
    tracefrom dir hitPlayers ignoreEnt )
    {
        
    100000;
        
    bulletTracefrom from vectorScaledir ) , isDefinedhitPlayers ) && hitPlayers ignoreEnt );
        
    t["distance"] = t["fraction"];

        if( !
    isDefinedt["normal"] ) || t["normal"] == ( ) )
            
    t["normal"] = ( );

        return 
    t;


  2. The Following 2 Users Say Thank You to serthy For This Useful Post:

    EvoloZz (9th May 2013),Tally (9th May 2013)

Posting Permissions

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