Jump to content

Fallout New Vegas GECK & Scripting Help 101


Recommended Posts

Guest luthienanarion
Posted

4.2.4 added IsPlayable and SetIsPlayable.

Posted

According to the wiki, getarmorrating is called on an actor (no param) and returns AR of currently worn item.

refActor.GetArmorRating
It returns a percentage, so it might need a float, not an int.

 

 

It also works with a form or a ref as param.

 

Get/SetEquipmentBidpedMask and GetPerkRank will be in the next NVSE version.

Guest tomm434
Posted

Thanks,Pridelslayer, Waffles, jaam!

Guest luthienanarion
Posted

On that note, BGSBipedModelList::unk004 seems to be a BGSListForm instead of an integer.

 

 

class BGSBipedModelList : public BaseFormComponent
{
public:
    BGSBipedModelList();
    ~BGSBipedModelList();

    BGSListForm*    unk004;        // 004
    // 008
};
Posted

Anything unknown starts as a UInt32 before being qualified :)

In this case it would be logical though to have a list.

Posted

Can someone help me out with something minor? I need to make an in game menu, of the ShowMessage type, but I'm not really sure where to start, mainly because I need to open up if a player presses a key. The examples I checked don't really say where it is that the key was binded, which is what is confusing me.  

Guest tomm434
Posted

There is special function in NVSE "tap control". I think there is nothing better than that. Also can you clarify what you meanby sleeping? sleeping mode menu?

Posted

When IsPCSleeping returns 1. I assume that that's during menumode yes, after the time to sleep has been confirmed and 'ok' clicked. I'm I don't even know if the tap control would do it -- I know of the function, it's how I implement the telephoto (zoom out) stuff.

Guest tomm434
Posted

Try "tapping" escape key - maybe that'll switch menumode off.

Posted

I don't want to tap any controls, so I'm looking for another way. ;)

 

If there is no other way, then that will probably work for both situations, but when sitting, I'll have to 'choose' a direction to tap (fwd/back/left/right) and hope it's not an invalid/dangerous direction. For the NPCs I just use evp which gets them on their feet in either situation.

Guest tomm434
Posted

Odessa, thanks! I never knew about "Close all menus command" . The thing is - it closes MCM menu too. And for the record(obviously) - it works.

Posted

Now what about making 'em stand up without pressing a key? It's secondary, just an immersion thing, but would be nice if the PC would stand up beforehand the way the NPCs do, thanks to evp.

Guest tomm434
Posted
Can't addpackage to the player, at least, I think you can't.

You can add some animation package to player (see TTW MQ08 capture script for example). So maybe you can?

 

 

 

I used it with good result on scrambler in the infamous tryout scene xsmile.png.pagespeed.ic.5Yux4gu5_h.png

I got stuck there so many times :P

Posted

Tomm is that quest only on TTW or there's a way for me to check it via NV GECK?

Because I experimented a lot with packages on player, they never worked. At least, I had funny discoveries and consequences, but they weren't working as intended, like for npcs.

 

Prideslayer, what about calling a playidle via spell that invokes a very high priority special idle, that leasts 0.02 seconds, where it simply restore the Idle position? like taking the playgroup mtIdle, grabbing only the first frame, convert it to a specific special idle and invoke it... just like you reset everything else, your common reset animations for facial or body do that much or less, invoke another animation that reset values.

Can do you the kf if you think the idea works, it takes me few minutes to do that

Posted

That might work, I'm not sure. I think i tried something like that before and after the idle animation was done playing, because it's just an animation, the character returned immediately to the sitting position as if they'd warped there. They just didn't play the "sit down" animation to get there.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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