![]() |
MM plugin that returns bsp model numbers.
In my Metamod plugin for CS I would like to be able to face a door, press a key and have the plugin tell me the model number of the door.
Does anyone have example code on how I would do this? Thanks. |
Re: MM plugin that returns bsp model numbers.
doors are models? ???:(
[edit] maybe you meant what texture it was? [/edit] |
Re: MM plugin that returns bsp model numbers.
Doors are entities,
a brush, entity as opposed to a point entity. I need the MODEL number associated with the door. For example here is a typical door ENTITY. { "model" "*17" "origin" "2448 232 -488" "stopsnd" "0" "movesnd" "0" "wait" "30" "speed" "3" "angles" "0 -2 0" "distance" "90" "classname" "func_door" } Notice it's model is 17. That is what I am looking for from a mm plug in. |
Re: MM plugin that returns bsp model numbers.
PMTools plugin does what you want :D
Here's an example of what you can do with it. Point your gun at a door, and type "traceline" in the console. Then get the hit entity number and type "printent " followed by that number : Quote:
|
Re: MM plugin that returns bsp model numbers.
Oh man! What would the world be like with out
Pierre-Marie Baty! EXACTLY what I need to help me hack doors easily. I have already added the code to my map hack utility! I am working on a way WHERE you can POINT to a door, fire the trace to get the model # (so you can find THE door entity) and then select which way you want the door to slide open left or right. Map hack then modifies the door to be a func_door instead of a func_door_rotating <= these give bots a lot of trouble and I don't even care for them myself! Now maphack can even modify the doors! One totally noobie question. The angle used to make the door slide into the wall has to be, 0 or 180 (makes the door move left or right into the wall) IF it is aligned on the x axis, or we need to use 90 or 270 if the door is aligned on the Y axis. So if I am pointing at a door how can I tell if I am (mostly) facing angle 0,180,90, or 270? +Y 90 ^ | | 180 -X ----> +X 0 | | -Y 270 ??? Once I have this a new feature of maphack will be: Point to a door that swings open (func_door_rotating), you get a menu asking if you want the door to slide open to the left or the right, and then maphack will automatically change the door entity to be a func_door, the type that slide into the wall. The type of door the bots handle way better! Once I have this I will be able to setup a map for bots with 28 spawn points per side and all doors "fixed" in less then one round time! Woot! |
Re: MM plugin that returns bsp model numbers.
I don't know at all about these angles. But anyway, why do you bother hacking all your doors in all your maps when the fix for the bots to navigate doors perfectly like humans is known already ? My metamod port of POD-bot has no problem with any sort of door, by the way.
You could easily imagine a fix based on this one for POD-bot 2.5 and include it into the PodFix plugin... I have the feeling you're wasting a lot of time... :( |
Re: MM plugin that returns bsp model numbers.
Quote:
Take a look at this PM. It is THE pod2.6MM. This bot was STUCK AT THE FU_KING func_door_rotating. And he got stuck simply BY THE EDGE OF THE DOOR! The bot got stuck ON THE EDGE OF THE DOOR AND WOULD NOT GIVE IT UP, PERIOD, Jumping every few seconds and trying to move straight ahead to no avail. http://austinbots.com/misc/BotStuckA...orRotating.jpg I have been at this, running servers with pod.x bots for 2.5 years. They SIMPLY-SCREW-UP-BADLY ON the func_door_rotating type of doors. They get stuck behind them. They get stuck on the edges. They bunch up on both sides pushing the doors incessantly trying to open them in vain, since other bots are on the other side doing the same thing, and the door can't possibly swing open with bots on both sides. THIS HAS BEEN T-H-E #1 worst thing about the bots that makes then less playable then they could be. Perhaps is it worse for me over others since I run a server with 28 BOTs on the same team. When I put in my "fix" which was to change all the doors to func_door, my regular players ALL commented how much better and more fun the the bots were playing the maps. If you can give me a fix where they would not get stuck on the edge of a rotating door, would not get stuck behind an open rotating door, and a fix where like 3 bots on both sides of a rotating door get through about as well as humans then I would GLADLY "quit wasting my time!" |
All times are GMT +2. The time now is 19:41. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.