Raised This Month: $ Target: $400
 0% 

Spawns question? Need Help !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 07-12-2006 , 16:56   Re: Spawns question? Need Help !
Reply With Quote #1

help help? thanks.
jopmako is offline
Send a message via MSN to jopmako
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-13-2006 , 01:27   Re: Spawns question? Need Help !
Reply With Quote #2

You must know you're creating spawns at the origin (0,0,0); which will cause players to get stuck and die at spawn.
I guess the missing part, "// set origin here", is relevant for checking the problem.

Last edited by commonbullet; 07-13-2006 at 01:32.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 07-14-2006 , 05:21   Re: Spawns question? Need Help !
Reply With Quote #3

Quote:
Originally Posted by commonbullet
You must know you're creating spawns at the origin (0,0,0); which will cause players to get stuck and die at spawn.
I guess the missing part, "// set origin here", is relevant for checking the problem.
Thank you for your respond,but,you may not unstand what i am saying,
because for my bad english,so sorry.

---------
example:

Server load a map de_train , base this map only for 22 players
I want to setup for 32 players

I make a plugin use add ent and set origin and more player can join in, it work fine.

How can you do that whitout use plugin_precache() ,So more player can join in.
Becurse, in plugin_precache() i cannt count the original spawns i need to used.

thanks.
jopmako is offline
Send a message via MSN to jopmako
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 07-14-2006 , 07:58   Re: Spawns question? Need Help !
Reply With Quote #4

You MUST create this in precache, things you need:

Code:
spawn = create_entity("info_player_deathmatch") // Terrorist /* or spawn = create_entity("info_player_start") */ // CT set_entity_origin(spawn, SOMEORIGIN) set_pev(spawn, pev_angles, SOMEANGLES) dispatch_spawn(spawn)
Failure on doing = no new spawn, since the HL engine caches them in precache. If you say it doesn't work, I'll slap you!!! I already have this method tried and tested been working for many months, since the mod I'm working on destroys old and places in new.

Quote:
Originally Posted by jopmako
How can you do that whitout use plugin_precache() ,So more player can join in.
Becurse, in plugin_precache() i cannt count the original spawns i need to used.
Why do you need to do that?

Only solution here is physically storing how many spawns are on each map then you can work it out in precache. As you said you know de_train has 22 spawns so thats 11 CT and 11 T, just means storing all this info in your script I'm afraid.

There is a more hacky way:
create 32 spawn points (precache)
store misc data in iuser4 (still precache)
plugin_init check total amount of spawns
then start removing ones you added since they have a unique key (iuser4)

Last edited by Orangutanz; 07-14-2006 at 08:12.
Orangutanz is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 07-14-2006 , 10:02   Re: Spawns question? Need Help !
Reply With Quote #5

Quote:
Only solution here is physically storing how many spawns are on each map then you can work it out in precache. As you said you know de_train has 22 spawns so thats 11 CT and 11 T, just means storing all this info in your script I'm afraid.
spawn= 24 ,it is my misstake when the post. haha

Quote:
Why do you need to do that?
whitout use plugin_precache()
I make a plugin use add ent and set origin and more player can join in, it work fine.
But must setup howmany (t ot ct) need to be add in plugin_precache().

Quote:
There is a more hacky way:
create 32 spawn points (precache)
store misc data in iuser4 (still precache)
plugin_init check total amount of spawns
then start removing ones you added since they have a unique key (iuser4)
good ideas , i know how to do now, thanks a lot.
jopmako is offline
Send a message via MSN to jopmako
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 07:59.


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