Raised This Month: $ Target: $400
 0% 

[SOLVED] Finding BSP monster spawn origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4554
Senior Member
Join Date: Aug 2009
Old 01-12-2013 , 06:40   [SOLVED] Finding BSP monster spawn origin
Reply With Quote #1

There is a .map file
Code:
{
"TriggerCondition" "4"
"TriggerTarget" "monstercounter"
"classname" "monster_zombie"
"angle" "240"
"TriggerCondition" "0"
"targetname" "bubbles"
"origin" "1108 -1474 64"
}
does anybody knows to find this monster's origin(from cs) by amxx/metamod?

Last edited by 4554; 01-16-2013 at 23:39.
4554 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-12-2013 , 06:43   Re: Finding BSP monster spawn origin
Reply With Quote #2

Parse the file or hook keyvalue forward when map is loading.
__________________
Arkshine is offline
4554
Senior Member
Join Date: Aug 2009
Old 01-12-2013 , 06:44   Re: Finding BSP monster spawn origin
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Parse the file or hook keyvalue forward when map is loading.
Sorry for my foolish amxx knowledge, can u give a amxx sample plugin for getting monster_zombie?

Last edited by 4554; 01-12-2013 at 06:45.
4554 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-12-2013 , 06:52   Re: Finding BSP monster spawn origin
Reply With Quote #4

Maybe this can help you:

http://forums.alliedmods.net/showthread.php?t=155527
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Old 01-12-2013, 07:04
4554
This message has been deleted by 4554. Reason: blah
4554
Senior Member
Join Date: Aug 2009
Old 01-13-2013 , 02:57   Re: Finding BSP monster spawn origin
Reply With Quote #5

Code:
public fm_keyvalue(entid)
{
	if (pev_valid(entid))
	{
		new classname[32]
		pev(entid, pev_classname, classname, 31)

		if(equal(classname, "monster_zombie"))
			server_print("entity %s", classname)
	}
}
It doesn't work, i cant find anything about monster_zombie

Last edited by 4554; 01-13-2013 at 03:00.
4554 is offline
Schwabba2
Junior Member
Join Date: Jul 2012
Old 01-13-2013 , 05:58   Re: Finding BSP monster spawn origin
Reply With Quote #6

I don't think server_print will work in pfn_keyvalue, try log_to_file.
Schwabba2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-13-2013 , 06:02   Re: Finding BSP monster spawn origin
Reply With Quote #7

use pfn_keyvalue forward (engine) , not the one from fakemeta.
__________________
Arkshine is offline
4554
Senior Member
Join Date: Aug 2009
Old 01-13-2013 , 06:24   Re: Finding BSP monster spawn origin
Reply With Quote #8

Code:
#include <amxmodx>
#include <engine>

public pfn_keyvalue(entid)
{
	if (is_valid_ent(entid))
	{
		static szClass[32]
		entity_get_string(entid, EV_SZ_classname, szClass, 31)

		//if(equal(classname, "monster_zombie"))
		//server_print("entity %s", classname)
		log_to_file("test2.log", "entity %s", szClass)
	}
}
Same, maybe monster_zombie not a valid ent for cs?
I have just found monster_scientist.

Last edited by 4554; 01-13-2013 at 06:43.
4554 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-13-2013 , 06:51   Re: Finding BSP monster spawn origin
Reply With Quote #9

Yes probably. So you would need to get all its properties spawn everything again. I remember last time that I couldn't solve it though.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-13-2013 , 15:12   Re: Finding BSP monster spawn origin
Reply With Quote #10

Quote:
Originally Posted by Schwabba2 View Post
I don't think server_print will work in pfn_keyvalue, try log_to_file.
No. server_print() will work at any time. You may miss it in the server console because of other stuff that is output but it still works.
__________________
fysiks 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 13:39.


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