Jump to content

Trig question


DoctaSax

Recommended Posts

Posted

I was never any good at figuring this stuff out, so bear with me while I try to explain what I want without my head exploding.

 

I'm trying to check for a situation where an npc is standing behind the player, somewhere in a triangle with the player at the top & the top angle not exceeding 90°, with a clear line of sight to the player, and standing no more than 30 feet away.

In short, knowing that the npc is in a good position to check out the player's ass. :cool:

 

Any help would be much appreciated.

 

Posted

Your welcome. I hope so too! Then I can steal your code at a later time for one of my projects :P

 

Heh, you'd be welcome to it. But there's snooker on all week, so no promises. :D

Posted

Your welcome. I hope so too! Then I can steal your code at a later time for one of my projects :P

 

Heh' date=' you'd be welcome to it. But there's snooker on all week, so no promises. :D

[/quote']

 

I'm in the middle of selling my apartment and moving, so no rush ;)

Posted

Well, I went about it in a slightly different way. But it works.

If anyone's interested, here's my test script.

 

 

 

scn DSAssCheckingScpt

 

begin GameMode

 

if (DocMitchellRef.GetInSameCell player == 1)

if (DocMitchellRef.GetDetected player == 1)

if DocMitchellRef.GetDistance player <= 700

if player.GetHeadingAngle DocMitchellRef < -135

DocMitchellRef.Look player ; he's checking your ass!, make sure it looks that way

showmessage DSAssCheckingMsg ; message says "is he checking my ass?" you never know!

; would be a good place for a bump in lust

elseif player.GetHeadingAngle DocMitchellRef > 135

DocMitchellRef.Look player

showmessage DSAssCheckingMsg

endif

endif

endif

endif

 

End

 

 

 

And for giggles, here's how it looks in-game:

Posted

Nice! Love your character's hair btw' date=' what are you using for it?

 

Practically, what would this actually entail in the game though?

[/quote']

 

The hair is probably out of Lings. Usually not a fan of long hair due to clipping but this one's ok, mostly.

 

Practically, I'm working on a quest that takes it slow. Stolen glances, overcoming initial reluctance, that sort of thing. As opposed to "hey! let's fuck". More of a romance, although of course not exactly fairy-tale like and with various story paths and endings. But in each case you have to put in some effort.

 

So what I wanted here is that the player's realization that the Doc, in this case, is checking her ass, could lead to a bump in lust, and perhaps an extra dialogue topic where she says something about it, moving the story forward. I'd probably make it dependent on wearing a short skirt or hotpants or something - to be used with SCES. Trying to complicate things as much as I can ;)

Posted

I really like that idea. I've myself been pondering about a little 'romance' plugin that say, either adds a few characters or changes existing ones to allow for more romanticky dialogue, that is less 'sordid' than say, hookups and sex, but along the lines of what you're doing.

 

It's nice to see you've got a handle on it though, the 'is he checking my ass out' and other little things definitely add a nice touch, I hope you manage to finish it.

 

I've not tried Lings, I mostly use Mikoto'sBeautyPack. I'll give it a try though.

Posted

One thing about Lings that I both like and dislike is the optional "Lings Pretty Things" plugin. I like it because it makes certain NPCs really look a lot better. I dislike it primarily because of Sunny Smiles. I love the way it makes her look, but if you have the Sunny companion mod it breaks her AI and makes her always head for home. Its relatively easy to fix though, just make sure Sunny loads after LPT, then use FNVEdit to make a merge patch and manually overwrite her appearance data.

 

Sorry for the derailment, we now return you to your regularly scheduled thread.

Posted

It's nice to see you've got a handle on it though' date=' the 'is he checking my ass out' and other little things definitely add a nice touch, I hope you manage to finish it.

[/quote']

 

You and me both. I'm managing to overcomplicate story as well as technical stuff, and am so far out of my comfort zone, modding-wise, that I can't even remember where it was. Which is all good, really.

 

One thing about Lings that I both like and dislike is the optional "Lings Pretty Things" plugin. I like it because it makes certain NPCs really look a lot better. I dislike it primarily because of Sunny Smiles. I love the way it makes her look' date=' but if you have the Sunny companion mod it breaks her AI and makes her always head for home. Its relatively easy to fix though, just make sure Sunny loads after LPT, then use FNVEdit to make a merge patch and manually overwrite her appearance data.

 

Sorry for the derailment, we now return you to your regularly scheduled thread.

[/quote']

 

At some point or other you always end up having to tweak, patch, mix and match. Installing is usually the least of your worries :D

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...