Mancubus
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Preventing line-trigger hopping
 
Author
All times are GMT. The time now is 17:08. Post New Thread    Post A Reply
printz
CRAZY DUMB ZEALOT


Posts: 6129
Registered: 06-06


I know that if a player runs fast enough, he can cross over walkover trigger linedefs without activating them. Under some cases these triggers could run a critical ACS script that mustn't be ignored. Here, in case the player hops over one linedef, I'll make sure there's another just beyond, so he trips on that and triggers that.

If the player is a vanilla Hexen Fighter with strafe-running aided by the mouse, how far apart do I have to put two similar walkover triggers, considering they're on straight directions (e.g. not slanted), to ensure the script's activation?

Does ZDoom fix this? Note that I'm making this Hexen map for vanilla, however.

Also, as for the spechits being overrun, I wouldn't worry, because here we have only 2 relevant lines...

Old Post 02-17-10 12:37 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6962
Registered: 01-03



printz said:

Does ZDoom fix this? Note that I'm making this Hexen map for vanilla, however.



ZDoom splits fast moves into more smaller sub-moves so it's much less likely that this happens - but in rare occasions with very fast moving objects it still can - not with players though.

As for the distance, it has to be larger than half the maximum running speed minus the player's radius at least. I can't say what's the max. speed of the Fighter is. 'I'm not sure if 8 is enough but 16 should do.

Old Post 02-17-10 13:28 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6129
Registered: 06-06


Thanks. Interesting topic.

I've looked up the FighterPlayer ZDoom wiki article and observed this part of code:
code:
Player.ForwardMove 1.08, 1.2 Player.SideMove 1.125, 1.475

Here, and maybe in other places, I see that the running speed is multiplied by a greater factor than the walking speed (the strafed run is quite large btw), so fighter's running will be more than twice as fast as walking, right?

How fast is the base PlayerPawn max side running speed? I know that the max forward speed is 17 or 17.5, but the strafing speed could be different. If I consider the PlayerPawn side running speed 17 like the forward one, and decide to strafe-run with the Fighter, who's all faster, I'd get an effective speed of sqrt((1.2*17)^2 + (1.475*17)^2) = 32.325 which is larger than the player size! If the unmultiplied actual strafing speed is in fact always lower than 17 though, then there'd be no risk to get the fighter out of the level bounds...

Old Post 02-17-10 14:59 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6962
Registered: 01-03


All those values are acceleration, not speed so it's hard to tell. The fastest I ever got the DoomPlayer was more than 40 while testing some old wallrunning effect that's no longer present in ZDoom.

Old Post 02-17-10 15:05 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4484
Registered: 08-00


Don't you need to account for SR50'ing speed runners? :>

Old Post 02-17-10 23:20 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 6458
Registered: 07-07


If you really want to be safe... Put a wall or something, 16 units behind the trigger linedef. Make the script-that-needs-to-be-run clear the way. No possibility to bypass the object then. Ah!

Alternatively, you could use obstacles that you can't jump above to make a little maze, forcing the player to twist and turn and preventing SR50+wallrunning accelerations.

Alternatively alternatively, spawn a Heresiarch within the player if he gets in a sector he shouldn't get into without having first activated the linedef. :p

Old Post 02-17-10 23:25 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6129
Registered: 06-06


Have Zedek materialize in :)

Some of the tips are cool, tho.

The concern for this was caused by the fighter, with whom it is quite easy to glide over portals, for example.

How does walkover triggering work anyway? When exactly does it fail? When it never intersects itself with the bounding box?

Old Post 02-17-10 23:37 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 6962
Registered: 01-03



printz said:

How does walkover triggering work anyway? When exactly does it fail?




A line is triggered when the center of the player is in front of the line before the move and behind the line after the move and (and this is the important point!) the player actor touches the line.

So if the player is in front of the line and then moves across it but fast enough so that the resulting position does no longer touch the line no action is triggered.

In the end just another consequence of Doom's shitty movement code that didn't do anything right...

Old Post 02-17-10 23:45 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 17:08. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Preventing line-trigger hopping

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory