12-06-2014, 02:53 AM
Updated the tags file for amnesia scripting in the Geany IDE
I believe that I have not missed ANY new function at all (unless there were more then those I could find here.
If I have missed any PLEASE tell me!
If there's any bugs with these tags let me know and I'll get to fixing it right away!
My test's all worked perfectly but I haven't yet tested ALL of the new scripting functions.
Changelog
First Changes
Added all of the following tags to the tags file.
StringToFloat|float|(string&in asString)|
StringToInt|int|(string&in asString)|
StringToBool|bool|(string&in asString)|
MathSin|float|(float afX)|
MathCos|float|(float afX)|
MathTan|float|(float afX)|
MathAsin|float|(float afX)|
MathAcos|float|(float afX)|
MathAtan|float|(float afX)|
MathAtan2|float|(float afX, float afY)|
MathSqrt|float|(float afX)|
MathPow|float|(float afBase, float afExp)|
MathMin|float|(float afA, float afB)|
MathMax|float|(float afA, float afB)|
MathClamp|float|(float afX, float afMin, float afMax)|
MathAbs|float|(float afX)|
GetPlayerPosX|float|()|
GetPlayerPosY|float|()|
GetPlayerPosZ|float|()|
GetEntityPosX|float|(string &in asName)|
GetEntityPosY|float|(string &in asName)|
GetEntityPosZ|float|(string &in asName)|
GetBodyMass|float|(string &in asName)|
SetInDarknessEffectsActive|void|(bool abX)|
StartInsanityEvent|void|(string &in asEventName)|
StopCurrentInsanityEvent|void|()|
SetPlayerJumpForceMul|void|(float afMul)|
SetPlayerFallDamageDisabled|void|(bool abX)|
SetPlayerPos|void|(float afX, float afY, float afZ)|
SetEntityVisible|void|(string &in asName, bool abVisible)|
ReplaceEntity|void|(string &in asName, string &in asBodyName, string &in asNewEntityName, string &in asNewEntityFile, bool abFullGameSave)|
PlaceEntityAtEntity|void|(string &in asName, string &in asTargetEntity, string &in asTargetBodyName, bool abUseRotation)|
SetEntityPos|void|(string &in asName, float afX, float afY, float afZ)|
SetBodyMass|void|(string &in asName, float afMass)|
AttachPropToProp|void|(string& asPropName, string& asAttachName, string& asAttachFile, float afPosX, float afPosY, float afPosZ, float afRotX, float afRotY, float afRotZ)|
AlertEnemyOfPlayerPresence|void|(string &in asName)|
SetEnemySanityDecreaseActive|void|(string &in asName, bool abX)|
TeleportEnemyToNode|void|(string &in asEnemyName, string &in asNodeName, bool abChangeY)|
TeleportEnemyToEntity|void|(string &in asEnemyName, string &in asTargetEntity, string &in asTargetBody, bool abChangeY)|
ChangeManPigPose|void|(string&in asName, string&in asPoseType)|
SetTeslaPigFadeDisabled|void|(string&in asName, bool abX)|
SetTeslaPigSoundDisabled|void|(string&in asName, bool abX)|
SetTeslaPigEasyEscapeDisabled|void|(string&in asName, bool abX)|
ForceTeslaPigSighting|void|(string&in asName)|
GetEnemyStateName|string&|(string &in asName)|
Second Changes
Removed the tag for
AddKeyPart(int)
Downloads
Pastebin Link
Dropbox Link
EDIT - Link Broken. Please refer to the Pastebin Link.
Setting up Geany for HPL2 Scripting
File Path
Thanks to Your Computer for the tutorial video!
I believe that I have not missed ANY new function at all (unless there were more then those I could find here.
If I have missed any PLEASE tell me!
If there's any bugs with these tags let me know and I'll get to fixing it right away!
My test's all worked perfectly but I haven't yet tested ALL of the new scripting functions.
Changelog
Spoiler below!
First Changes
Added all of the following tags to the tags file.
StringToFloat|float|(string&in asString)|
StringToInt|int|(string&in asString)|
StringToBool|bool|(string&in asString)|
MathSin|float|(float afX)|
MathCos|float|(float afX)|
MathTan|float|(float afX)|
MathAsin|float|(float afX)|
MathAcos|float|(float afX)|
MathAtan|float|(float afX)|
MathAtan2|float|(float afX, float afY)|
MathSqrt|float|(float afX)|
MathPow|float|(float afBase, float afExp)|
MathMin|float|(float afA, float afB)|
MathMax|float|(float afA, float afB)|
MathClamp|float|(float afX, float afMin, float afMax)|
MathAbs|float|(float afX)|
GetPlayerPosX|float|()|
GetPlayerPosY|float|()|
GetPlayerPosZ|float|()|
GetEntityPosX|float|(string &in asName)|
GetEntityPosY|float|(string &in asName)|
GetEntityPosZ|float|(string &in asName)|
GetBodyMass|float|(string &in asName)|
SetInDarknessEffectsActive|void|(bool abX)|
StartInsanityEvent|void|(string &in asEventName)|
StopCurrentInsanityEvent|void|()|
SetPlayerJumpForceMul|void|(float afMul)|
SetPlayerFallDamageDisabled|void|(bool abX)|
SetPlayerPos|void|(float afX, float afY, float afZ)|
SetEntityVisible|void|(string &in asName, bool abVisible)|
ReplaceEntity|void|(string &in asName, string &in asBodyName, string &in asNewEntityName, string &in asNewEntityFile, bool abFullGameSave)|
PlaceEntityAtEntity|void|(string &in asName, string &in asTargetEntity, string &in asTargetBodyName, bool abUseRotation)|
SetEntityPos|void|(string &in asName, float afX, float afY, float afZ)|
SetBodyMass|void|(string &in asName, float afMass)|
AttachPropToProp|void|(string& asPropName, string& asAttachName, string& asAttachFile, float afPosX, float afPosY, float afPosZ, float afRotX, float afRotY, float afRotZ)|
AlertEnemyOfPlayerPresence|void|(string &in asName)|
SetEnemySanityDecreaseActive|void|(string &in asName, bool abX)|
TeleportEnemyToNode|void|(string &in asEnemyName, string &in asNodeName, bool abChangeY)|
TeleportEnemyToEntity|void|(string &in asEnemyName, string &in asTargetEntity, string &in asTargetBody, bool abChangeY)|
ChangeManPigPose|void|(string&in asName, string&in asPoseType)|
SetTeslaPigFadeDisabled|void|(string&in asName, bool abX)|
SetTeslaPigSoundDisabled|void|(string&in asName, bool abX)|
SetTeslaPigEasyEscapeDisabled|void|(string&in asName, bool abX)|
ForceTeslaPigSighting|void|(string&in asName)|
GetEnemyStateName|string&|(string &in asName)|
Second Changes
Removed the tag for
AddKeyPart(int)
Pastebin Link
Dropbox Link
EDIT - Link Broken. Please refer to the Pastebin Link.
Setting up Geany for HPL2 Scripting
File Path
Thanks to Your Computer for the tutorial video!