Raised This Month: $ Target: $400
 0% 

Spawns question? Need Help !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 07-14-2006 , 07:58   Re: Spawns question? Need Help !
Reply With Quote #9

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
 



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