Raised This Month: $32 Target: $400
 8% 

[TF2] Prophunt Random Prop Generation?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 04-18-2017 , 21:50   [TF2] Prophunt Random Prop Generation?
Reply With Quote #1

So there's this one server where every round, it randomly generates props and removes prop to make some hiding location available and unavailable. I'm just wondering how this would be accomplished?

Would it require some point mapping on the level itself and use the plugin to detect those points?

Last edited by RumbleFrog; 04-18-2017 at 22:05.
RumbleFrog is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 04-19-2017 , 09:32   Re: [TF2] Prophunt Random Prop Generation?
Reply With Quote #2

If it's not something like ph_warehouse where the map handles all the prop generation, it's likely just a collection of manually-defined coordinates (and maybe pulling existing prop_* coordinates from the map).

Some other possibilities include sampling existing players' on-ground locations into a database for future candidate spawn points or leveraging TF2's navigation mesh generation and selecting points from there. Never heard of those actually being used in practice though.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-19-2017 , 10:01   Re: [TF2] Prophunt Random Prop Generation?
Reply With Quote #3

Either that or it removes props randomly around the map, however I'm not sure how tf2 prophunt even works.
Mitchell is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 04-19-2017 , 14:30   Re: [TF2] Prophunt Random Prop Generation?
Reply With Quote #4

Quote:
Originally Posted by nosoop View Post
If it's not something like ph_warehouse where the map handles all the prop generation, it's likely just a collection of manually-defined coordinates (and maybe pulling existing prop_* coordinates from the map).

Some other possibilities include sampling existing players' on-ground locations into a database for future candidate spawn points or leveraging TF2's navigation mesh generation and selecting points from there. Never heard of those actually being used in practice though.
Oh, some maps does it by itself?
RumbleFrog is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 04-20-2017 , 02:24   Re: [TF2] Prophunt Random Prop Generation?
Reply With Quote #5

Quote:
Originally Posted by RumbleFrog View Post
Oh, some maps does it by itself?
Yep. I just checked my copies of ph_maze_a4 and ph_warehouse_b1; both maps hook up a logic_auto's OnMultiNewRound output to toggle various hardcoded prop_dynamic entities.

Should be doable in SourceMod or even by dynamically injecting new props with Stripper:Source (each map's specific implementation of random prop spawning varies, so you'll have to dump each map's entities yourself, if they even set up random props at all).
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 04-20-2017 at 02:48.
nosoop is offline
Reply



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


All times are GMT -4. The time now is 19:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode