Tutorial {Map Scripting} How to create Spawnpoints .
|
01-09-2015, 08:37 PM
(This post was last modified: 01-09-2015 08:51 PM by Hani.)
Post: #1
|
|||
|
|||
{Map Scripting} How to create Spawnpoints .
Therefore, There are some maps that actually doesnt have Spawnpoints, How are we going to create or add one? , Easy..Just have a look on the video. Tutorial By Hani & Dominator56 In Theory:- 1)Download or find a map that doesnt have spawnpoints 2)Open its .pk3 file and inside you will find the "map" folder 3)Open the "map" folder you will find the (mapname).script file. 4)Open the (mapname).script file with notepad and u will see something likes this (The .script file inside the map shows you how the map is controlled or i can say how the map is working and how is it making it run according to the objectives and the teams itself) PHP Code: game_manager -Sometimes some maps with more objectives and stuff have more codes..like this one. PHP Code: game_manager 5)Somehow if you want to add a spawnpoint, You Should make sure you start adding it after the "Spawn{" Code Like this.. PHP Code: game_manager 6) This is the Main(Starting Code Spawnpoint) For Allies, You must Put this Code at first if you want to start creating a spawnpoint for Allies Team. PHP Code: create 7)After adding the first code for creating spawnpoint for allies, You want to lets say add amount of 5 spawnpoints for allies, so u will put it in this way.. PHP Code: create 7)So All Together for an allies spawnpoint will look like this, PHP Code: game_manager 8)Same For Axis But there will be just difference in their script words like the scriptname,classname and the targetname. PHP Code: create 9)So All Together Axis & Allies Spawnpoints together should look like this :- PHP Code: game_manager *It Should look like this after all, Both Allies and Axis have 5 Spawnpoints now* PHP Code: game_manager *Important Notices*
~ The Map Should be without spawnpoints if u want to add one, if you are adding a spawnpoint on a map that has already one , then it might not work at all ~ ~ Spawnflags means = 2(ALLIES) 1(AXIS), sometimes Most of the map's axis spawnpoint doesnt work if u add number 1 in the axis's spawnflag code so better for both teams add "spawnflag 2" in the spawnpoint codes ~ ~ Sometimes Map will crash..the problem is that you have done some typo or missed some brackets in the .script , so becarefull and put the code properly as how i did ~ ~If you want to increase the amount of spawnpoints, then continue the same code by adding a allies_spawn2..3..4.5..6 etc. ~It will not work if you test it with your Local Host, You should create a private jaymod server and test it there, or share it with your freind's private server. ~ All The Best. |
|||
01-09-2015, 09:20 PM
Post: #2
|
|||
|
|||
RE: {Map Scripting} How to create Spawnpoints .
wouldn't you need permission of the map creator to even do so?
|
|||
02-09-2015, 05:46 AM
Post: #3
|
|||
|
|||
RE: {Map Scripting} How to create Spawnpoints .
(01-09-2015 09:20 PM)Chris Wrote: wouldn't you need permission of the map creator to even do so? Is all the map creators are easy to make a contact with em and ask permission? You don't need any permission when you r creating a fix but one thing is that you shouldn't say that yea I fixed this map..now this map is made by me..just an example so.. All the maps I fixed is attached with code already, I dont need to contact the creator of map and ask Permission lol..thats just a big waste of time. and its SPAWNPOINT Scripting not Map Making. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)