Posts
503
Respect
391Add +1
Forum Rank
Zombie Enslaver
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!I didnt test this in zombiemode much but it should be enough to get you started.
Unstamp prefab into your radiant map. Make sure the spawner targets the cover nodes after unstamping. You can also put a traverse (wall_hop) between the spawner and cover nodes and he will do the traverse anim on the way to the node.
In your mods/mapname/maps/mapname.gsc
zombiemode::main();
thread spawn_trig_example();
Then paste the entire function at the very bottom of your mapname.gsc
https://www.mediafire.com/download/347mika6447d03n
I didnt test this in zombiemode much but it should be enough to get you started.
Unstamp prefab into your radiant map. Make sure the spawner targets the cover nodes after unstamping. You can also put a traverse (wall_hop) between the spawner and cover nodes and he will do the traverse anim on the way to the node.
In your mods/mapname/maps/mapname.gsc
zombiemode::main();
thread spawn_trig_example();
Then paste the entire function at the very bottom of your mapname.gsc
https://www.mediafire.com/download/347mika6447d03n
Unstamp is a button in the radiant toolbar. It unstamps prefabs into your map.
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Toolbar
//
Load prefab in you map, then unstamp the prefab.
Paste the single line of code from the text file under zombiemode::main(); in mapname gsc
Paste the function from the text file at the bottom of mapname.gsc
U can look in the zombiemode perks script for a long example on how to charge a player a cost. Or check different tuts from users on this site that have buyable trigs u can use for an example.
The prefab i sent was an allies/marine spawner and it works as intended in a new zombie map.
I didnt try with an axis guy so there might be a conflict with both of them and the cover nodes.
You can set the health with
Spawned_guy.health = 1234;
//
You will need to look through some of the raw/maps folder at some campaign scripts (ber mak and oki2/oki3) to see how to use guys properly. Search for Stalingradspawn or dospawn and see what types of settings they put on guys.
Unstamp is a button in the radiant toolbar. It unstamps prefabs into your map.
http://wiki.modsrepository.com/index.php?title=Call_of_Duty_5:_Toolbar
//
Load prefab in you map, then unstamp the prefab.
Paste the single line of code from the text file under zombiemode::main(); in mapname gsc
Paste the function from the text file at the bottom of mapname.gsc
You need to learn some scripting if you want complete features like that in your map. Or design a great map and other modders will help.
This is only for 1 player and has no checks for if the player is dead or disconnected ect so it will cause issues if the player is being revived.
//untested
//Spawned_guy thread updatemy_pos();
Updatemy_pos()
{
Self endon ("death");
//self is spawned_guy
While(1)
{
Leader = get_players()[0];
Self.goalradius = 512;
Self setgoalpos(leader.origin);
Self waitill("goal");
Wait (randomfloatrange(1,4));
}
}