Raising defense

Post » Sun Aug 22, 2010 5:36 am

I'm looking up ideas on how to force the player to become 'invincible' for a short amount of time.

I've thought about modAv, and cant see how that would really work in the given circumstances.

Any theories?
User avatar
Joanne Crump
 
Posts: 3457
Joined: Sat Jul 22, 2006 9:44 am

Post » Sun Aug 22, 2010 7:52 am

I'm looking up ideas on how to force the player to become 'invincible' for a short amount of time.

I've thought about modAv, and cant see how that would really work in the given circumstances.

Any theories?

make a piece of armor that covers everything, but the mesh is empty and also unequip the weapons
User avatar
Justin Hankins
 
Posts: 3348
Joined: Fri Oct 26, 2007 12:36 pm

Post » Sun Aug 22, 2010 4:36 pm

make a piece of armor that covers everything, but the mesh is empty and also unequip the weapons


Not a bad idea, then I suppose run a getseconds passed script to force the armour to be equipped for x minutes, and upon x minutes counting down to 0, unequip the armour?

Wouldnt the player be able to see this though?
User avatar
Cat
 
Posts: 3451
Joined: Mon Dec 18, 2006 5:10 am

Post » Sun Aug 22, 2010 10:28 am

Not a bad idea, then I suppose run a getseconds passed script to force the armour to be equipped for x minutes, and upon x minutes counting down to 0, unequip the armour?

Wouldnt the player be able to see this though?

woops you said invincible not invisible, ok thats less complicated, I am not sure for Fallout, but for Oblivion it was setghost 1, then everything passes through you. you could also do a placeatme, that puts a dome around the player, but it is just collision, no actual mesh
User avatar
Terry
 
Posts: 3368
Joined: Mon Jul 09, 2007 1:21 am

Post » Sun Aug 22, 2010 9:46 am

Easiest is to just call ResetHealth on them each frame, or add an ability with RestoreHealth +999.
User avatar
Sian Ennis
 
Posts: 3362
Joined: Wed Nov 08, 2006 11:46 am

Post » Sun Aug 22, 2010 9:49 am

Easiest is to just call ResetHealth on them each frame, or add an ability with RestoreHealth +999.


Swarley, ahhh I see :) gotcha

Talkie, that would work I guess, yeah :) I'll try and report back
User avatar
Spencey!
 
Posts: 3221
Joined: Thu Aug 17, 2006 12:18 am

Post » Sun Aug 22, 2010 2:16 pm

woops you said invincible not invisible, ok thats less complicated, I am not sure for Fallout, but for Oblivion it was setghost 1, then everything passes through you. you could also do a placeatme, that puts a dome around the player, but it is just collision, no actual mesh



the "utter dome" idea would make the NPCs behave very oddly though, because they would see an obstruction on the landscape and engage pathfinding to get around it, seeing no path they might behave in undefined ways, especially melee-using NPCs.
User avatar
Alister Scott
 
Posts: 3441
Joined: Sun Jul 29, 2007 2:56 am

Post » Sun Aug 22, 2010 6:25 pm

the "utter dome" idea would make the NPCs behave very oddly though, because they would see an obstruction on the landscape and engage pathfinding to get around it, seeing no path they might behave in undefined ways, especially melee-using NPCs.

no it wouldn't the path-finding is generated in the GECK, not when a cell is actually loading
User avatar
NAkeshIa BENNETT
 
Posts: 3519
Joined: Fri Jun 16, 2006 12:23 pm

Post » Sun Aug 22, 2010 9:16 am

no it wouldn't the path-finding is generated in the GECK, not when a cell is actually loading



You're right, however their pathfinding is undefined for walls not found in the GECK navmesh, because as it stands walls aren't generated dynamically in-game. When they run into said wall they might continue trying to execute what they're doing, running in place, clip, or do other odd things.
User avatar
Monika
 
Posts: 3469
Joined: Wed Jan 10, 2007 7:50 pm

Post » Sun Aug 22, 2010 3:26 pm

You're right, however their pathfinding is undefined for walls not found in the GECK navmesh, because as it stands walls aren't generated dynamically in-game. When they run into said wall they might continue trying to execute what they're doing, running in place, clip, or do other odd things.

its gonna be just encompassing the player, so it won't cause that much trouble since it is not that big of an object, and no one will really run up that close to a player, even melee attacks are a ways away
User avatar
Maria Leon
 
Posts: 3413
Joined: Tue Aug 14, 2007 12:39 am

Post » Sun Aug 22, 2010 7:14 am

Couldn't you just modav damagethreshold 1000, then modav damagethreshold -1000 afterward?
User avatar
Ashley Hill
 
Posts: 3516
Joined: Tue Jul 04, 2006 5:27 am

Post » Sun Aug 22, 2010 1:21 pm

Couldn't you just modav damagethreshold 1000, then modav damagethreshold -1000 afterward?


Tried that already, doesn't seem to work :(
User avatar
Ray
 
Posts: 3472
Joined: Tue Aug 07, 2007 10:17 am

Post » Sun Aug 22, 2010 8:44 pm

Edit:

Scratch that, I used the ghost script and it seems to work spiffingly :)
User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm

Post » Sun Aug 22, 2010 8:01 am

Edit:

Scratch that, I used the ghost script and it seems to work spiffingly :)

haha I win again
User avatar
Sakura Haruno
 
Posts: 3446
Joined: Sat Aug 26, 2006 7:23 pm


Return to Fallout: New Vegas