Raised This Month: $51 Target: $400
 12% 

Witch spawn at the end safedoor


Post New Thread Reply   
 
Thread Tools Display Modes
sorallll
Senior Member
Join Date: Oct 2018
Old 12-17-2021 , 00:24   Re: Witch spawn at the end safedoor
Reply With Quote #11

Try this plugin.
Attached Files
File Type: sp Get Plugin or Get Source (end_safedoor_witch.sp - 107 views - 4.2 KB)
File Type: txt end_safedoor_witch.txt (479 Bytes, 132 views)

Last edited by sorallll; 12-17-2021 at 00:32. Reason: Increase the inspection of NavArea
sorallll is offline
yzybb
Member
Join Date: Jul 2020
Old 12-17-2021 , 02:08   Re: Witch spawn at the end safedoor
Reply With Quote #12

Quote:
Originally Posted by sorallll View Post
Try this plugin.
So coooool! It's perfect, thank you very much sorallll!

I just used your latest version, Report test situation: Some maps are normal, such as C2. In some maps, there is a problem. In C1, the witch is not sitting, But standing and wandering without blocking the safety door. In C3M2, the position of the witch is often inside the house instead of at the door, Sometimes it even hangs in the air. In some unofficial maps, the end safedoor is closed. In this case, witches are often not produced. In C2M4, Sometimes the witch was disturbed while sitting, but instead of running, She hit the door in place, which was strange.

Some of these issues may not be important, but the most important one is C1 issue. Need to spawn a sitting witch.





Last edited by yzybb; 12-17-2021 at 03:51. Reason: Merge message
yzybb is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-17-2021 , 03:32   Re: Witch spawn at the end safedoor
Reply With Quote #13

Congrats. As Marttt said, please use the edit button when your message is the last and stop posting multiple messages after each other.
__________________
Silvers is offline
yzybb
Member
Join Date: Jul 2020
Old 12-17-2021 , 03:40   Re: Witch spawn at the end safedoor
Reply With Quote #14

Quote:
Originally Posted by Silvers View Post
Congrats. As Marttt said, please use the edit button when your message is the last and stop posting multiple messages after each other.
Sorry, I forgot when I was anxious just now, now I have merged the messages, I will pay more attention to it in the future, thanks everyone your corrections.

Last edited by yzybb; 12-17-2021 at 03:46.
yzybb is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 12-17-2021 , 21:17   Re: Witch spawn at the end safedoor
Reply With Quote #15

Quote:
Originally Posted by yzybb View Post
So coooool! It's perfect, thank you very much sorallll!

I just used your latest version, Report test situation: Some maps are normal, such as C2. In some maps, there is a problem. In C1, the witch is not sitting, But standing and wandering without blocking the safety door. In C3M2, the position of the witch is often inside the house instead of at the door, Sometimes it even hangs in the air. In some unofficial maps, the end safedoor is closed. In this case, witches are often not produced. In C2M4, Sometimes the witch was disturbed while sitting, but instead of running, She hit the door in place, which was strange.

Some of these issues may not be important, but the most important one is C1 issue. Need to spawn a sitting witch.




PHP Code:
sm_cvar sv_force_time_of_day 0
MidnightDawnMorningAfternoonDuskEvening  Sitting witch spawn (0,1,5) ) 

Last edited by fdxx; 12-17-2021 at 21:18.
fdxx is offline
yzybb
Member
Join Date: Jul 2020
Old 12-17-2021 , 22:08   Re: Witch spawn at the end safedoor
Reply With Quote #16

Quote:
Originally Posted by fdxx View Post
PHP Code:
sm_cvar sv_force_time_of_day 0
MidnightDawnMorningAfternoonDuskEvening  Sitting witch spawn (0,1,5) ) 
Thanks, But this will cause all the witches to sit, May not be a perfect solution.

Quote:
Originally Posted by sorallll View Post
Try this plugin.
Code:
int entity = CreateEntityByName("witch");
	if(entity != -1)
	{
		TeleportEntity(entity, vPos, NULL_VECTOR, NULL_VECTOR);
		SetEntPropFloat(entity, Prop_Send, "m_rage", 0.5);
		SetEntProp(entity, Prop_Data, "m_nSequence", 4);
		DispatchSpawn(entity);
		SetEntProp(entity, Prop_Send, "m_CollisionGroup", 1);
		CreateTimer(0.3, Timer_SolidCollision, EntIndexToEntRef(entity), TIMER_FLAG_NO_MAPCHANGE);
	}
Excuse me. I want to ask you,please. "m_rage" and "m_nSequence" What are the effects of these two codes?

Quote:
Originally Posted by Silvers View Post
Congrats. As Marttt said, please use the edit button when your message is the last and stop posting multiple messages after each other.
Excuse me. Silvers, Would you please tell me the answer to this question? please.

Last edited by yzybb; 12-18-2021 at 10:32.
yzybb is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 12-18-2021 , 12:54   Re: Witch spawn at the end safedoor
Reply With Quote #17

Unless each map is hard-coded, I can't find a better way to generate a witch in front of the safe door. I made another plug-in to generate a random number of witches in the end safe room at the destination of each map, if you need it, I can send it out
sorallll is offline
yzybb
Member
Join Date: Jul 2020
Old 12-18-2021 , 21:32   Re: Witch spawn at the end safedoor
Reply With Quote #18

Quote:
Originally Posted by sorallll View Post
Unless each map is hard-coded, I can't find a better way to generate a witch in front of the safe door. I made another plug-in to generate a random number of witches in the end safe room at the destination of each map, if you need it, I can send it out
Thanks sorallll, we may not need to spawn witches in the house. I want to learn from you now, I want to understand the meaning of those two lines of code and the functions that can be achieved, please.

Last edited by yzybb; 12-18-2021 at 21:35.
yzybb is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 01-02-2022 , 04:29   Re: Witch spawn at the end safedoor
Reply With Quote #19

Now it should be able to be generated in the normal position
Attached Files
File Type: sp Get Plugin or Get Source (end_safedoor_witch.sp - 134 views - 6.5 KB)
File Type: txt end_safedoor_witch.txt (479 Bytes, 89 views)

Last edited by sorallll; 01-03-2022 at 20:22. Reason: No longer need left4dhooks dependency
sorallll is offline
yzybb
Member
Join Date: Jul 2020
Old 01-02-2022 , 06:14   Re: Witch spawn at the end safedoor
Reply With Quote #20

Quote:
Originally Posted by sorallll View Post
Now it should be able to be generated in the normal position
Hello sorallll, thank you very much. There is no problem with the function of this version, but the gap between the witch and the door is a bit big. I want her to go back a bit, how can I adjust it?

yzybb 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 15:12.


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