Results 1 to 5 of 5
  1. #1
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic

    How to remove the Flash/Concussion effects in TeknoMW3 [Programmers Only]

    Figured I'd post this as I really don't see many things like these around here.

    First, we'll make our structures:
    Code:
    typedef struct
    	{
    	int blurBlendFadeTime; //0000
    	int blurBlendTime; //0004
    	int whiteFadeTime; //0008
    	int shotFadeTime; //000C
    	int screenType; //0010
    	int unknown_int3000; //0014
    	float viewKickPeriod; //0018
    	float viewKickRadius; //001C
    	bool shockSound; //0020
    	char sfString[31]; //0021
    	} grenadeData;
    
    typedef struct
    	{
    	grenadeData data[4]; //0000
    	char unknown0[36];
    	int soundFadeInTime; //0124 
    	int soundFadeOutTime; //0128
    	float soundDryLevel; //012C
    	float soundWetLevel; //0130
    	char soundRoomType[16]; //0134
    	char unknown1[256];
    	int soundModEndDelay; //0244
    	int soundLoopFadeTime; //0248
    	int soundLoopEndDelay; //024C
    	BOOL lookControl; //0250
    	int lookControlFadeTime; //0254
    	float lcMouseSensitivityScale; //0258
    	float lcMaxPitchSpeed; //025C
    	float lcMaxYawSpeed; //0260
    	BOOL shockMovement; //0264
    	} GrenadeData_T;

    Next, let's make some functions:
    Code:
    	void RemoveEffects(StunFlash_T* grenade)
    	{
    		grenade->lookControl = FALSE;
    		grenade->lookControlFadeTime = 0;
    		grenade->lcMaxPitchSpeed = 0.0f;
    		grenade->lcMaxYawSpeed = 0.0f;
    		grenade->lcMouseSensitivityScale = 0.0f;
    		grenade->data[0].screenType = 0;
    		grenade->data[0].blurBlendFadeTime = 0;
    		grenade->data[0].blurBlendTime = 0;
    		grenade->data[0].viewKickPeriod = 0.0f;
    		grenade->data[0].viewKickRadius = 0.0f;
    	}
    
    	void EnableEffects(StunFlash_T* grenade)
    	{
    		grenade->lookControl = TRUE;
    		grenade->lookControlFadeTime = 2000;
    		grenade->lcMaxPitchSpeed = 75.0f;
    		grenade->lcMaxYawSpeed = 75.0f;
    		grenade->lcMouseSensitivityScale = 0.1f;
    		grenade->data[0].screenType = 1;
    		grenade->data[0].blurBlendFadeTime = 12000;
    		grenade->data[0].blurBlendTime = 400;
    		grenade->data[0].viewKickPeriod = (float)0x3FC3AE3A;
    		grenade->data[0].viewKickRadius = (float)0xCDCCCC3D;
    	}
    Now your assignments:

    Code:
    GrenadeData_T* flashGrenade = (GrenadeData_T*)0x008DB808;
    GrenadeData_T* concussionGrenade = (GrenadeData_T*)0x008DB5A0;
    Voila, now call it in your function like so:
    Code:
    void Remove()
    {
    	DisableEffects(flashGrenade);
    	DisableEffects(concGrenade);
    }
    void ReEnable()
    {
    	EnableEffects(flashGrenade);
    	EnableEffects(concGrenade);
    }
    Yea, Credits: Props to CoMPMStR, Thx bro :PP
    Last edited by Kenshin13; 09-29-2012 at 10:32 AM. Reason: Fixed some typos. Added Credits.

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

    Horror (09-29-2012),jim246 (09-29-2012)

  3. #2
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,920
    Reputation
    574
    Thanks
    5,050
    My Mood
    Twisted
    Indeed, not seen very often Thanks for sharing
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  4. #3
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Might be my vision.. I just woke up.. But I don't see any credits... And we both know you didn't found all of this...


    CoD Minion from 09/19/2012 to 01/10/2013

  5. #4
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    875
    My Mood
    Cool
    Lol ******, this was released by compmstr on another forum. Not your release so credit the people when re-releasing their stuff.
    "Joker: why the hakcer are steaklign us name it´s the greatest asshole and motherfucker and i fuck him or her mother"

  6. #5
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by intervention61 View Post
    Lol ******, this was released by compmstr on another forum. Not your release so credit the people when re-releasing their stuff.
    Very mature; I knew I forgot credits, however I was too busy to re-find the origional person.

Similar Threads

  1. Replies: 7
    Last Post: 02-10-2011, 11:22 PM
  2. how to remove the grenade launcher on my server
    By brand2000 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 01-04-2011, 11:03 AM
  3. Replies: 3
    Last Post: 04-01-2010, 09:57 AM
  4. How to remove the long startup intro...
    By BlackThawt in forum Combat Arms Discussions
    Replies: 12
    Last Post: 10-02-2009, 05:33 AM
  5. how to add the flash on your profile
    By dk173 in forum General
    Replies: 4
    Last Post: 07-07-2009, 11:51 PM