•  Map-Craft Tutorials  •  Forums  •  Profile  •  Members List  •  Private Messages  •  Logout  •  

Menu   

 

HomeHome  
    Home
Map-Craft  
    Forums
    Tutorials New
    Reviews
    Site Map
    Site Search
Members  
    Your Account
    Shout Box
Files, Links & Docs  
News & Stats  
    News Archive
    Submit News
    Top Read Stories
Other  

Shout Box   

 


Only registered users can shout. Please login or create an account.

Latest 10 Tutorials   

 

Tool Box   

 


Google Powered
Google Map-Craft
Google Web


Site search

Forum search

Advanced Forum Search


Translate this page:




Search for at
www.map-craft.com Advanced Search
A question!

Post new topic  Reply to topic  printer-friendly view www.map-craft.com Forum Index -> JK Editing Discussion
View previous topic :: View next topic
Author Message
santeri
Soup
Soup



Joined: Jan 24, 2010
Posts: 8


Status: Offline
Game: JKA
PostPosted: Sun Jan 24, 2010 6:06 pm Post subject: A question! Reply with quote

1) I'm making a map and I'd like to know where I can find the cloak item. I can't see it in the item list, where there are the rest of the items, jetpack, portable turret, sentry etc. I hope it's not tricky to explain how to make them appear. :D

2) Can you somehow adjust the probability for spawns? Say, I have 5 spawns for example, of which I want one to be "rare", so that players won't spawn on it as often as they do on the other 4. I know I could just create 200 spawns and make one of them in the location where I'd want a "rare" spawn, but I want to use a less troublesome method if there is one.

This kind of is my first map so more questions may emerge if terms that I don't know the meanings for are used.  :D

Thanks in advance for your possible answers!
Back to top
View user's profile Send private message
santeri
Soup
Soup



Joined: Jan 24, 2010
Posts: 8


Status: Offline
Game: JKA
PostPosted: Mon Jan 25, 2010 5:38 pm Post subject: Re: A question! Reply with quote

Ok, so I found out how to get cloaks on the map. All I'd like to know at the moment would be if there is the possibility to adjust the probability of spawns or not. :S

So if anyone knows a way to adjust it, or knows for sure that it can't be done any other way than making loads of spawns, please tell me! :D
Back to top
View user's profile Send private message
Lazarus
V.I.P.
V.I.P.



Joined: May 11, 2005
Posts: 842
Location: The Hague, Holland

Status: Offline
Title: Coffee Criminal
Game: JKA
PostPosted: Mon Jan 25, 2010 6:43 pm Post subject: Re: A question! Reply with quote

yes, i know for instance, szico made that in one of his maps, he had an area you had to discover before you could spawn that, i am not sure how he scripted it.. my best bet is, a trigger that hits a target activate which is connected to a spawnpoint that is turned off (dunno if that is even possable)






The thought of Rosh Penin doing the Macarena makes me want to saber myself.

~ChernyVolk

Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShadowKnight
Site Admin
Site Admin



Joined: Sep 18, 2005
Posts: 1575
Location: Sydney, Australia.

Status: Offline
Title: All-Powerful G rep.
Game: JKA
PostPosted: Tue Jan 26, 2010 1:09 am Post subject: Re: A question! Reply with quote

I'm afraid the only method I can think of involves a very large amount of entities, depending on how many spawns you have. There would probably be a way to script this, but that's out of my area.




Gamer's Request
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
santeri
Soup
Soup



Joined: Jan 24, 2010
Posts: 8


Status: Offline
Game: JKA
PostPosted: Wed Jan 27, 2010 3:15 pm Post subject: Re: A question! Reply with quote

Thanks for your replies!
Back to top
View user's profile Send private message
Seto
Scholar
Scholar



Joined: Jul 15, 2008
Posts: 115
Location: Surfing a winfinite loop

Status: Offline
Title: Odd modder o.O
Game: JKA
PostPosted: Wed Jan 27, 2010 6:32 pm Post subject: Re: A question! Reply with quote

BobaFett's "silent spawn" system (I think that is what he named it...) could be modified to handle this quite well.  In summary, you can first determine probabilities by using the random function of Icarus and then check for certain possibilities, e.g. make a random (0,10) set variable and then do one check for values < 1 for a 1/10 chance of getting the special spawn and use the remainder for normal spawns.  Then upon determining which set of spawns to use, you can use a dummy entity, like an info_notnull, to first move to the origin you want with set_origin, then use set_copy_origin on the players to move them to that location (because just using set_origin on players doesn't work).  In this way you can have an indefinite number of possible spawnpoints and control the probability of spawning at any of them, without using up any additional entities.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Crazy-Assassin
Expert
Expert



Joined: Aug 04, 2008
Posts: 421


Status: Offline
Title: JKFiles Staff
Game: JKA
PostPosted: Wed Jan 27, 2010 8:15 pm Post subject: Re: A question! Reply with quote

Seto wrote (View Post):
BobaFett's "silent spawn" system (I think that is what he named it...) could be modified to handle this quite well.  In summary, you can first determine probabilities by using the random function of Icarus and then check for certain possibilities, e.g. make a random (0,10) set variable and then do one check for values < 1 for a 1/10 chance of getting the special spawn and use the remainder for normal spawns.  Then upon determining which set of spawns to use, you can use a dummy entity, like an info_notnull, to first move to the origin you want with set_origin, then use set_copy_origin on the players to move them to that location (because just using set_origin on players doesn't work).  In this way you can have an indefinite number of possible spawnpoints and control the probability of spawning at any of them, without using up any additional entities.


Like this?

Code:
//Generated by BehavEd

rem ( "Target_Scriptrunner with Spawnflag 1 set." );

task ( "set" )
{

    affect ( "teleloc",  FLUSH )
    {

        if ( get( FLOAT, "SET_PARM1"), =, 1 )
        {
            set (  "SET_ORIGIN", get( VECTOR, "SET_PARM2") );
        }

        else (  )
        {
            set (  "SET_ORIGIN", get( VECTOR, "SET_PARM3") );
        }
    }
}

dowait ( "set" );
set (  "SET_COPY_ORIGIN", "teleloc" );


Night of the living well-oiled toaster ovens.
Back to top
View user's profile Send private message
Seto
Scholar
Scholar



Joined: Jul 15, 2008
Posts: 115
Location: Surfing a winfinite loop

Status: Offline
Title: Odd modder o.O
Game: JKA
PostPosted: Thu Jan 28, 2010 4:59 pm Post subject: Re: A question! Reply with quote

That would work, but of course you are limited by the number of parms to determine the possible number of locations.  If you enter in the origin coordinates manually in set_origin and use nested if and elses, you have potentially limitless possible spawn locations.  That and I'm not 100% sure that getting a vector from a parm works in MP, maybe it does but I don't remember.

Another interesting point is that you can actually use set_origin on the player to set the origin value without actually moving the player, and then use set_copy_origin again on the player to move to the location specified by set_origin.  Since set_copy_origin requires a targetname, this means you will have to have some initialization script or otherwise that sets targetnames on players (and a different targetname for each player), but assuming you can get this working, what you end up with is effectively a teleportation system that uses 0 entities.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Crazy-Assassin
Expert
Expert



Joined: Aug 04, 2008
Posts: 421


Status: Offline
Title: JKFiles Staff
Game: JKA
PostPosted: Fri Jan 29, 2010 5:53 am Post subject: Re: A question! Reply with quote

Seto wrote (View Post):
That would work, but of course you are limited by the number of parms to determine the possible number of locations.  If you enter in the origin coordinates manually in set_origin and use nested if and elses, you have potentially limitless possible spawn locations.


That's what I thought when I first made my stargate scripts. Then I discovered a way to 'outsource' the stargate's address data, allowing you to add addresses that can be dialed at a price of one entity per address.

With a spawn system (using parms), you could have 7 locations to 1 entity. (7 parms to check if/then, 7 for the coordinates, 1 for connecting the entity to the next set of coordinates.) The upshot of using parms, is you can program coordinates on the fly in Lugormod. Razz

Seto wrote (View Post):
Another interesting point is that you can actually use set_origin on the player to set the origin value without actually moving the player, and then use set_copy_origin again on the player to move to the location specified by set_origin.  Since set_copy_origin requires a targetname, this means you will have to have some initialization script or otherwise that sets targetnames on players (and a different targetname for each player), but assuming you can get this working, what you end up with is effectively a teleportation system that uses 0 entities.


You'd still need ONE entity for the scriptrunner. And it IS possible to assign targetnames of sorts to each player, so you could do it that way.


Night of the living well-oiled toaster ovens.
Back to top
View user's profile Send private message
NAB622
V.I.P.
V.I.P.



Joined: Jan 03, 2006
Posts: 1880
Location: I'm smart! I LAMINATED my box!

Status: Offline
Title: Comfortably crazy!
Game: JKA
PostPosted: Thu Feb 18, 2010 5:52 pm Post subject: Re: A question! Reply with quote

Don't know if you're aware, but BobaFett informed me that you can teleport a player with a script. Downside is that it doesn't work on client 0 without JA+ (or so I hear).

Use SET_ORIGIN to set the origin to a certain value, and then SET_COPY_ORIGIN to copy the player's origin to themselves. You won't have any teleportation effects, but if you use a ref_tag or even manually typed coordinates to give the location, you have not used any entities and yet still teleported the player.

May or may not work with your current system, or maybe you're already doing that...just saying, it's incredibly useful to have a 0-entity teleport.


I have no idea how the Raven mappers didn't end up strangling the programmers. They must work in separate buildings with incompatible keycards...  -lassev


Ya but that was where NAB was going like 'hey thats nice'. Here I'm like 'brain just made a connection'. :D -Pande
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view www.map-craft.com Forum Index ->  JK Editing Discussion Time synchronized with your computer time
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Powered by phpBB © 2001, 2006 phpBB Group




PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke-Evolution.

This site is cached. Click here to update the cache.
[ Page Generation: 0.58 Seconds | Memory Usage: 6.32 MB | DB Queries: 61 ]