Jump to content
Sign in to follow this  
TWRoach

Force AI AutoFire and no gun sound need help

Recommended Posts

hi guys sorry  my English is very bad

 I use google translation

 

I was having trouble making the module.
I forced ai automatic shooting very good effect

But their guns don’t have any sound. 
Can anyone help me?
 

this is code


macros.hpp

Spoiler

#define PROTO(CNAME) \

class ##CNAME##

 

#define GRENADE(CNAME, PNAME) \

class ##CNAME##: ##PNAME## \

{ \

aiAmmoUsageFlags = 32; \

allowAgainstInfantry = 0; \

cost = 1000000; \

}

 

#define RIFLE(CNAME, PNAME) \

class ##CNAME##: ##PNAME## \

{ \

aiDispersionCoefX = 35; \

aiDispersionCoefY = 30; \

modes[] = {"bb_ai_FullAuto", "bb_ai_Burst"}; \

class bb_ai_FullAuto: Mode_FullAuto \

{ \

aiDispersionCoefX = 35; \

aiDispersionCoefY = 30; \

aiRateOfFire = 0.5; \

aiRateOfFireDistance = 400; \

minRange = 0; \

minRangeProbab = 0.89999998; \

midRange = 200; \

midRangeProbab = 0.80000001; \

maxRange = 400; \

maxRangeProbab = 0.30000001; \

burst = FULL_COUNT; \

dispersion = DISPERSION; \

class BaseSoundModeType; \

class StandardSound: BaseSoundModeType {}; \

class SilencedSound: BaseSoundModeType {}; \

}; \

class Blackbear_ai_Burst: Mode_FullAuto \

{ \

aiDispersionCoefX = 35; \

aiDispersionCoefY = 30; \

burst = BURST_COUNT; \

aiRateOfFire = 0.5; \

aiRateOfFireDistance = 800; \

minRange = 401; \

minRangeProbab = 0.80000001; \

midRange = 600; \

midRangeProbab = 0.69999999; \

maxRange = 800; \

maxRangeProbab = 0.4; \

dispersion = DISPERSION; \

class BaseSoundModeType; \

class StandardSound: BaseSoundModeType {}; \

class SilencedSound: BaseSoundModeType {}; \

}; \

}

 

Share this post


Link to post
Share on other sites

Looks like you have the modes labelled wrong.In your modes defines has "bb_ai_Burst", but your mode is labelled:Blackbear_ai_Burst".

 

Hope that helps.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×