Jump to content

Need Slightly Advanced Scripting Help For Animations/SexIS


Recommended Posts

Posted

Ok so I am trying to piggyback onto the sexis framework and I am shit at scripting but halfway good at juryrigging etc

I have basically added the below script onto a scene as I am trying to do custom sex scenes and already have a VA in place for a custom companion

The only issue I am having (and I know its probably a butchering of scripting etc but fuck it im bad at it) is getting the "Off" to be recognized as the Player.

If I could figure that out fuck understanding half of this but it should work..

Any Ideas or a complete redo of this Hashmash would be nice but this seems to be the only way I can make the characters NOT move.

Cheers

 

 

---------------------------------------------------------------------------------------------------------------------------------

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 4
Scriptname SF_000tryscenetry_02000D66 Extends Scene Hidden


int Property Def = 0 AutoReadOnly
int Property Off = 1 AutoReadOnly

Keyword[] tags
int numTags = 0


;
; The following need to be implemented by each animation set
; ==========================================================
;

;
; Gets an Idle form for the given position and stage
;
; stage    Which stage the animation should be for [0-4]
; position Which position the animation should be for [use Properties 'Def' and 'Off']
;
Idle Function GetAnim( int stage, int position )
    return None
EndFunction

;
; Gets the name of the animation
; Should be named after the script
;
String Function GetName()
    return ""
EndFunction





;
; The following may optionally be overridden
; ==========================================
;
float distance = 0.0

;
; Gets the distance of the specified actor in the given stage
; This default version is only good for 2 actors
;
float Function GetDistance( int stage, int position )
    if position == Off
        return distance
    Else
        return 0.0
    EndIf
EndFunction

;
; Sets the distance of the given actor for the given stage
; Note: By convention, the 'Def' actor is always at 0
;
Function SetDistance( int stage, int position, float value )
    if position == Off
        distance = value
    Else
        distance = distance - value
    EndIf
EndFunction

;
; Gets the rotation factor for a position
;
float Function GetRotation( int stage, int position )
    return 0.0
EndFunction

;
; Checks if the given stage automatically advances on it's own
; Returns true if it does
;
bool Function DoesAutoAdvance( int stage )
    return False
EndFunction

;
; Get how many actors are involved in this animation
; Note: Not supported yet
;
int Function GetNumActors()
    return 2
EndFunction

;
; Returns how many stages this animation is
; Note: Not supported yet
;
int Function GetStages()
    return 5
EndFunction





;
; The following should not be overridden
; ======================================
;

;
; Adds a keyword to this.
; Keywords are used for tagging animations
;
Function AddKeyword( Keyword akKeyword )
    if akKeyword != None && numTags < 128
        if !tags || tags.find( akKeyword ) < 0
            Keyword[] newTags = SexiSDynamicArray.KeywordArray( numTags + 1 )
            int i = 0
            while i < numTags
                newTags = tags
                i += 1
            EndWhile
            newTags = akKeyword
            tags = newTags
            numTags += 1
        EndIf
    EndIf
EndFunction

;
; Removes all keywords. Used for re-initialization
;
Function ClearKeywords()
    Keyword[] newTags
    tags = newTags
    numTags = 0
EndFunction

;
; Checks if this has the given keyword
;
bool Function HasKeyword( Keyword akKeyword )
    if !tags || akKeyword == None
        return False
    Else
        return tags.find( akKeyword ) >= 0
    EndIf
EndFunction






;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ReferenceAlias akAlias)
;BEGIN CODE
game.disableplayercontrols()
game.getplayer().unequipall()


girl.playidle(sex1)
game.getplayer().playidle(sex2)
utility.wait(1)
SetDistance( 0, Off, 44 )


;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Idle Property sex1  Auto  

Idle Property sex2  Auto  

Actor Property girl  Auto  


Actor Property Player  Auto  
 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...