13 lines
382 B
Plaintext
13 lines
382 B
Plaintext
void main()
|
|
{
|
|
int nLevel=GetLocalInt(GetPCSpeaker(),"nParm");
|
|
int nThreshold=0;
|
|
if (nLevel==1) nThreshold=-3;
|
|
else if (nLevel==2) nThreshold=-2;
|
|
else if (nLevel==3) nThreshold=-1;
|
|
else if (nLevel==5) nThreshold=250;
|
|
else if (nLevel==6) nThreshold=500;
|
|
else if (nLevel==7) nThreshold=1000;
|
|
SetLocalInt(GetModule(),"nCleanThreshold",nThreshold);
|
|
}
|