Seriously!

Go Back   Seriously! Forums > Serious Sam Series > Serious Sam HD

Serious Sam HD Discuss anything and everything about Serious Sam HD, the official remake of SS:FE on Serious Engine 3.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-28-2012, 05:52 AM   #1   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default How can I make an enemy stop when I look at it?

Title says it.
Anyone knows how to do it?
  Reply With Quote
Old 09-28-2012, 08:25 AM   #2   Add To Ignore List  
...
 
AntonioR's Avatar
 
Joined: May 2011
 
AntonioR is offline
Default Re: How can I make an enemy stop when I look at it?

I guess you need to be more badass
  Reply With Quote
Old 09-28-2012, 10:23 AM   #3   Add To Ignore List  
Pan
Silver Lined Boots
 
Pan's Avatar
 
Joined: May 2007
Location: Looking for Snake
 
Pan is offline
Default Re: How can I make an enemy stop when I look at it?

Sounds like an enemy script mod. Also im gonna assume you're trying to make a "boo".
__________________
"Don't you have to be told to do things to be considered a slave?"
  Reply With Quote
Old 09-28-2012, 11:14 AM   #4   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

Best bet would probably be a script involving the View Probe entity. I could possibly look into it if you want. (Also, SSHD or SS3?)
  Reply With Quote
Old 09-28-2012, 11:18 AM   #5   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

Quote:
Originally Posted by Ryason55 View Post
Best bet would probably be a script involving the View Probe entity. I could possibly look into it if you want. (Also, SSHD or SS3?)
SS3.
I love every help I get
Can you add me on steam? My enemy is for a project I am making and it should be a secret, and at the same time we can talk faster
  Reply With Quote
Old 09-30-2012, 07:56 AM   #6   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

Done.

It will for sure work with single characters. It has some capability for multiple, but there are a couple bugs. Really high numbers of characters (say, 50) will have a noticable delay in reaction time in regards to you looking at and away from them. Also, killing 2 or more but not all of the spawned puppets at once will cause the remaining ones to charge for a short period. I do have a slightly fixed version, but I already uploaded the earlier version, and I don't think you need more than the one character anyways.
Not sure if it's a failing of the View Probe or just an issue with the Kamikazes, but getting right next to the characters while looking at them doesn't seem to count as actually looking at them for some reason. To counteract this, just set the character's behaviour so it doesn't move at super-close range even if the player is looking away.
Also, there seems to be a maximum range for the View Probe's sight detection, despite the fact that it can be set much, much higher.

Quote:
Originally Posted by Devostator
Can you add me on steam? My enemy is for a project I am making and it should be a secret, and at the same time we can talk faster
It's just that I tend to not accept friend requests when I barely know the person. I guess if I take enough interest in the project and I deem it neccessary, I will.
  Reply With Quote
Old 09-30-2012, 08:31 AM   #7   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

Quote:
Originally Posted by Ryason55 View Post
It's just that I tend to not accept friend requests when I barely know the person. I guess if I take enough interest in the project and I deem it neccessary, I will.
ok
and thx for the script

Edit: Doesn't work for some reason the kamikazes still move when I look at them

Last edited by Devostator; 09-30-2012 at 08:35 AM.
  Reply With Quote
Old 09-30-2012, 09:05 AM   #8   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

Still works on my end. Did you change anything, such as their behaviour?
  Reply With Quote
Old 09-30-2012, 09:11 AM   #9   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

no, I just started it and they run at me even when I look at them
  Reply With Quote
Old 09-30-2012, 09:21 AM   #10   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

Can anyone else confirm/deny that this works?
  Reply With Quote
Old 09-30-2012, 09:44 AM   #11   Add To Ignore List  
Andromeda
 
Rakanishu's Avatar
 
Seriously! Sam Master
Joined: Dec 2011
Location: Universe
 
Rakanishu is offline
Default Re: How can I make an enemy stop when I look at it?

Confirmed. It doesn't work. Don't you need to create a .ep file just for this enemy?
__________________
Showcase Thread© -- Crippler and Raka's Artillery©
-------------------------

Procyon, alive... and still shining.
Check STM 1.08B for SSSE by Troy and Zeo.
French mapper and modder since 2010.
  Reply With Quote
Old 09-30-2012, 08:09 PM   #12   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

*sigh*, here's the updated version then. I've added debugging code that will print information to the console. Also went and localized the kamikaze's parameters, even though they absolutely cannot effect how it behaves in this particular case. Just removing variables.
  Reply With Quote
Old 10-01-2012, 04:28 AM   #13   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

He still runs at me, but he sometimes stops randomly when I look at a special place but that place is random always
  Reply With Quote
Old 10-04-2012, 11:54 PM   #14   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

Alright, let's try this one more time. Made one minor change to see if that does anything. If it doesn't work, report what the console says this time (I put that code in for a reason).
  Reply With Quote
Old 10-05-2012, 04:28 AM   #15   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

Quote:
Originally Posted by Ryason55 View Post
Alright, let's try this one more time. Made one minor change to see if that does anything. If it doesn't work, report what the console says this time (I put that code in for a reason).
ok, I just hope this works >.<
I know you're doing your best to get it working

Edit: Still doesn't work.
Console:
Quote:
Sight Debugging Start
Started simulation on 'Content/SeriousSam3/Levels/SightShy3.wld' in 1.16 seconds.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-6.690626, 0, 48.983024): Puppet at location:world(-6.690626, 0, 48.983024) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-6.690626, 0, 48.983024): Puppet at location:world(-6.690626, 0, 48.983024) uses local resource. That will not work in network.
table: 685558A8 Spawned : Position -6.6906261444092 , 0 , 48.983024597168
table: 685558A8 Killed
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-8.8426152, 0, 49.71704): Puppet at location:world(-8.8426152, 0, 49.71704) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-8.8426152, 0, 49.71704): Puppet at location:world(-8.8426152, 0, 49.71704) uses local resource. That will not work in network.
table: 77C8A7E8 Spawned : Position -8.8426151275635 , 0 , 49.717037200928
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.439521, 0, 54.918388): Puppet at location:world(-2.439521, 0, 54.918388) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.439521, 0, 54.918388): Puppet at location:world(-2.439521, 0, 54.918388) uses local resource. That will not work in network.
table: 77BF0C00 Spawned : Position -2.4395208358765 , 0 , 54.918388366699
table: 77C8A7E8 Has been seen : Position -8.8426151275635 , 1.5010894536972 , 49.717037200928
table: 77C8A7E8 Was looked away from : Position -8.8426151275635 , 1.5010894536972 , 49.717037200928
table: 77BF0C00 Killed
table: 77C8A7E8 Killed
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.894797, 0, 41.584896): Puppet at location:world(-2.894797, 0, 41.584896) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.894797, 0, 41.584896): Puppet at location:world(-2.894797, 0, 41.584896) uses local resource. That will not work in network.
table: 77BDB4E0 Spawned : Position -2.8947968482971 , 0 , 41.584896087646
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-0.1347122, 0, 41.580508): Puppet at location:world(-0.1347122, 0, 41.580508) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-0.1347122, 0, 41.580508): Puppet at location:world(-0.1347122, 0, 41.580508) uses local resource. That will not work in network.
table: 774BC218 Spawned : Position -0.13471220433712 , 0 , 41.580505371094
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-9.3385552, 0, 40.509604): Puppet at location:world(-9.3385552, 0, 40.509604) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-9.3385552, 0, 40.509604): Puppet at location:world(-9.3385552, 0, 40.509604) uses local resource. That will not work in network.
table: 77CABDD8 Spawned : Position -9.3385543823242 , 0 , 40.50959777832
table: 77BDB4E0 Has been seen : Position -2.8947968482971 , 1.5010894536972 , 41.584896087646
table: 77BDB4E0 Was looked away from : Position -2.8947968482971 , 1.5010894536972 , 41.584896087646
table: 774BC218 Killed
table: 77CABDD8 Killed
table: 77BDB4E0 Killed
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-3.7643744, 0, 49.307352): Puppet at location:world(-3.7643744, 0, 49.307352) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-3.7643744, 0, 49.307352): Puppet at location:world(-3.7643744, 0, 49.307352) uses local resource. That will not work in network.
table: 77C75880 Spawned : Position -3.764374256134 , 0 , 49.307353973389
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.523459, 0, 51.73614): Puppet at location:world(-2.523459, 0, 51.73614) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-2.523459, 0, 51.73614): Puppet at location:world(-2.523459, 0, 51.73614) uses local resource. That will not work in network.
table: 77C81568 Spawned : Position -2.5234589576721 , 0 , 51.736141204834
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-7.4044864, 0, 58.731708): Puppet at location:world(-7.4044864, 0, 58.731708) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-7.4044864, 0, 58.731708): Puppet at location:world(-7.4044864, 0, 58.731708) uses local resource. That will not work in network.
table: 77C9C1E0 Spawned : Position -7.4044861793518 , 0 , 58.731704711914
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-0.73705688, 0, 55.758256): Puppet at location:world(-0.73705688, 0, 55.758256) uses local resource. That will not work in network.
CLeggedCharacterEntity id=-1, name='LeggedCharacter001' location:world(-0.73705688, 0, 55.758256): Puppet at location:world(-0.73705688, 0, 55.758256) uses local resource. That will not work in network.
table: 77C8CEF8 Spawned : Position -0.73705691099167 , 0 , 55.758255004883

Last edited by Devostator; 10-05-2012 at 04:42 AM.
  Reply With Quote
Old 10-05-2012, 05:16 AM   #16   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

The only other thing I can think of is if you modified things related to the player character. It's reporting that the ViewProbe is being put into place, but the player's "eyes" just aren't getting picked up by the ViewProbe consistantly. Temporarily remove any changes related to the player (player puppet paremeters, global game parameters, weapons) and try it again.
  Reply With Quote
Old 10-05-2012, 05:36 AM   #17   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

Quote:
Originally Posted by Ryason55 View Post
The only other thing I can think of is if you modified things related to the player character. It's reporting that the ViewProbe is being put into place, but the player's "eyes" just aren't getting picked up by the ViewProbe consistantly. Temporarily remove any changes related to the player (player puppet paremeters, global game parameters, weapons) and try it again.
Done.
Tried it, and still doesn't work.
  Reply With Quote
Old 01-18-2013, 11:24 PM   #18   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

So hey, here's a heavily belated update. Talked with Alen about it, and I think we nailed the issue. I'll elaborate after you try it.
  Reply With Quote
Old 01-19-2013, 12:01 AM   #19   Add To Ignore List  
Black Star
 
Devostator's Avatar
 
Seriously! Creative Moderator
Joined: Jun 2011
Location: Germany
 
Devostator is offline
Default Re: How can I make an enemy stop when I look at it?

Quote:
Originally Posted by Ryason55 View Post
So hey, here's a heavily belated update. Talked with Alen about it, and I think we nailed the issue. I'll elaborate after you try it.
It works!
Ty!!!

Though I think Angelo could need that script more now, since he is doing his slender map. :3
This could be used for something different too like an unique enemy.

I scratched my map, because of FPS problems(Probably because of the trees xP ), but I might start a new one someday. Then I will use the script

Last edited by Devostator; 01-19-2013 at 12:04 AM.
  Reply With Quote
Old 01-19-2013, 12:50 AM   #20   Add To Ignore List  
Night Sparrow
 
Ryason55's Avatar
 
Joined: Nov 2006
 
Ryason55 is offline
Default Re: How can I make an enemy stop when I look at it?

No problem. You can pass this along to Angelo if he needs it.

As for what the issue was, it turns out that the View Probe is heavily FPS dependant. The original script checked the View Probe's sight every 67th of a second... thing is, if the user's FPS was lower than 67, the View Probe wouldn't report the sighting in time, and the check would always fail. Since I normally run that map at 100+ FPS, I never noticed this.
I mostly solved the issue by lowering the rate at which the script checks the View Probe's sight. At the moment, it'll support as low as 10 FPS. I made the value for it customizable, so the map-maker can tweak the minimum FPS as they see fit. Note that lower values mean slightly longer delays in the puppet's reaction time (which is much more noticeable when there are multiple puppets).
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resource] New Enemy Variations Pack - Mapping resource "mod" Solais Serious Sam HD Workshop 48 03-02-2013 07:23 AM


All times are GMT -4. The time now is 12:35 PM.