Initial commit
Initial commit [v9.7]
This commit is contained in:
22
_module/nss/npc_cam_orig.nss
Normal file
22
_module/nss/npc_cam_orig.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
#include "in_g_cutscene"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oMe = OBJECT_SELF;
|
||||
|
||||
FadeToBlack(oPC);
|
||||
|
||||
FadeFromBlack(oPC);
|
||||
|
||||
float fRange = GetHorizontalDistanceBetween(oMe,oPC)+1.0;
|
||||
float fAngle = GestaltGetDirection(oPC,oMe) - (asin(1.0 / fRange) / 1.5);
|
||||
// float fPitch = 90.0 - sqrt(12.0 - fRange);
|
||||
float fPitch = 70.0;
|
||||
|
||||
if (fAngle < 0.0) fAngle += 360.0;
|
||||
AssignCommand(oPC,SetCameraHeight(oPC,0.0));
|
||||
AssignCommand(oPC,SetCameraFacing(fAngle,fRange,fPitch));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user