DoctaSax Posted April 30, 2012 Posted April 30, 2012 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. Any help would be much appreciated.
Bromm83 Posted April 30, 2012 Posted April 30, 2012 http://cs.elderscrolls.com/index.php/GetDistance http://geck.bethsoft.com/index.php/Useful_Scripts#Forced_Relative_Orientation These two should get you started.
DoctaSax Posted May 1, 2012 Author Posted May 1, 2012 http://cs.elderscrolls.com/index.php/GetDistance http://geck.bethsoft.com/index.php/Useful_Scripts#Forced_Relative_Orientation These two should get you started. Thanks Bromm. Second link looks promising. Let's hope I can extrapolate from that
Bromm83 Posted May 1, 2012 Posted May 1, 2012 http://cs.elderscrolls.com/index.php/GetDistance http://geck.bethsoft.com/index.php/Useful_Scripts#Forced_Relative_Orientation These two should get you started. Thanks Bromm. Second link looks promising. Let's hope I can extrapolate from that Your welcome. I hope so too! Then I can steal your code at a later time for one of my projects
DoctaSax Posted May 2, 2012 Author Posted May 2, 2012 Your welcome. I hope so too! Then I can steal your code at a later time for one of my projects Heh, you'd be welcome to it. But there's snooker on all week, so no promises.
Bromm83 Posted May 3, 2012 Posted May 3, 2012 Your welcome. I hope so too! Then I can steal your code at a later time for one of my projects Heh' date=' you'd be welcome to it. But there's snooker on all week, so no promises. [/quote'] I'm in the middle of selling my apartment and moving, so no rush
DoctaSax Posted May 3, 2012 Author Posted May 3, 2012 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:
ChancellorKremlin Posted May 3, 2012 Posted May 3, 2012 Nice! Love your character's hair btw, what are you using for it? Practically, what would this actually entail in the game though?
DoctaSax Posted May 3, 2012 Author Posted May 3, 2012 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
ChancellorKremlin Posted May 4, 2012 Posted May 4, 2012 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.
KainsChylde Posted May 4, 2012 Posted May 4, 2012 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.
DoctaSax Posted May 4, 2012 Author Posted May 4, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now