Tweaked several areas, mobs, and added
the codi ai to some mobs.
This commit is contained in:
15
_module/nss/scalesize.nss
Normal file
15
_module/nss/scalesize.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
///scalesize.nss
|
||||
///Set variable on creature SCALE_SIZE float -> 0.0 to size desired
|
||||
|
||||
void main()
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"NO_SCALE")!=1)
|
||||
{
|
||||
float fScaleSize=GetLocalFloat(OBJECT_SELF,"SCALE_SIZE");
|
||||
if (fScaleSize==0.0)
|
||||
{
|
||||
fScaleSize=1.0+(IntToFloat(Random(11))/100.0)*IntToFloat(Random(3)-1);
|
||||
}
|
||||
SetObjectVisualTransform(OBJECT_SELF,OBJECT_VISUAL_TRANSFORM_SCALE,fScaleSize);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user