Quote:
Originally Posted by pl2003
Great Idea! Could you explain in which way the plugins alters the dod maps making this work? Iam just interested in the technically background.
|
Thank you.
Well, the idea is very simple in dod case. It’s basically converting “info_player_axis” and “info_player_allies” to cs spawns “info_player_deathmatch”, “info_player_start”.
The "tricky" is that you can’t simply rename entities’ classnames, and all dod specific entities are removed when a dod map is initialized in cs. So I’m using an engine forward function “pfn_keyvalue” to get entities’ key value pairs when the map is being loaded. Then it hooks origin, angles of each spawn point and dispatches specific cs spawn entities as dod ones are read.
Sorry, I’m terrible at explaining. Feel free to PM me.