Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
46
_module/nss/jw_craft_stshiel.nss
Normal file
46
_module/nss/jw_craft_stshiel.nss
Normal file
@@ -0,0 +1,46 @@
|
||||
#include "prc_x2_craft"
|
||||
#include "jw_inc_craft"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
StoreCameraFacing();
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
/*
|
||||
// * Make the camera float near the PC
|
||||
float fFacing = GetFacing(oPC) + 180.0;
|
||||
fFacing -= 90.0;
|
||||
if (fFacing > 359.0)
|
||||
{
|
||||
fFacing -=359.0;
|
||||
}
|
||||
SetCameraFacing(fFacing, 3.5f, 75.0,CAMERA_TRANSITION_TYPE_FAST ) ;
|
||||
*/
|
||||
CISetCurrentModMode(GetPCSpeaker(),X2_CI_MODMODE_SHIELD );
|
||||
SetCustomToken(X2_CI_MODIFYARMOR_GP_CTOKENBASE,"0");
|
||||
SetCustomToken(X2_CI_MODIFYARMOR_GP_CTOKENBASE+1,"0");
|
||||
|
||||
|
||||
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC);
|
||||
|
||||
object oBackup = CopyItem(oItem,IPGetIPWorkContainer());
|
||||
|
||||
|
||||
CISetCurrentModBackup(oPC, oBackup);
|
||||
CISetCurrentModItem(oPC, oItem);
|
||||
|
||||
// Hopefully this will set the string ref to read helmet
|
||||
SetCustomToken(XP_IP_ITEMMODCONVERSATION_CTOKENBASE,"shield");
|
||||
|
||||
|
||||
|
||||
//* Immobilize player while crafting
|
||||
effect eImmob = EffectCutsceneImmobilize();
|
||||
eImmob = ExtraordinaryEffect(eImmob);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eImmob,oPC);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user