Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 14 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Help needed with script...
Olle_se
General Member
Since: Nov 4, 2004
Posts: 62
Last: Sep 20, 2005
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Wednesday, Dec. 15, 2004 08:35 pm
I have a script from a mohaa map, and I want to get this script working for CODUO, could someone help me???

Code:
  


spawn_random_leader local.num:
// find a spawnpoint
local.spawnpoints = $("spawn" + local.num)
// local.spawnpoints is now the list of available spawnpoints
// find a random index
local.index = randomint (local.spawnpoints.size - 1) + 1
// randomint returns a number between o and max
// so randomint returns a number between o and
// the number of spawnpoints - 1
// after +1 local.index is a number between 1 and
//the number of spawnpoints.
local.spawnpoint = local.spawnpoints[local.index]
// ordinary spawn code here, e.g.
local.enemy = spawn models/human/allied_misc_manon.tik
local.enemy.origin = local.spawnpoint.origin
local.enemy.angles = local.spawnpoint.angles
local.enemy.targetname = "leader"
local.enemy.health = 1000
thread target
end

target:
if(IsAlive $leader)
$leader waittill death // if the leader is killed, then the mission will complete
thread theend
end

theend:
iprintlnbold_noloc "The resistance leader has been killed. Mission completed!"
waitframe
teamwin axis
end
Code:
  



This script would spawn a model on a random position. The positions in the .map file where marked with origins with a targetname of spawn1

One of the teams had to kill the model (a resistance leader) and the other team had to defend him.

Would this be possible in CODUO ??? If so, how?
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoDUO Mapping
Posted: Thursday, Dec. 16, 2004 03:37 am
it would be possible, but not in its current state
although cod runs on quakec...the methods and returns are very much different than the quakec script for mohaa

i would suggest familiarizing yourself with some of the more common methods used in cod and take a look at some of the well commented scripts and tutorials available on this site

i would rewrite it for you right now...but i am really too tired to think through that at the moment plus the code function is not working on the forums right now

if noone clears this up i will see what i can do...but you would learn more by accomplishing it yourself [angryalien]
Share |
getmapsfergy
General Member
Since: Mar 15, 2004
Posts: 42
Last: Mar 24, 2005
[view latest posts]
Level 2
Category: CoDUO Mapping
Posted: Thursday, Dec. 16, 2004 03:44 am
is this not just like the s&d gametype? I know that you can put multiple RE objectives, and the game will use random ones (via scripting?), wondering if it might be fessible to make this a RE gametype, but instead of putting an object in one place and needing to take it somewhere else, you put the destination "trigger" in the same location as the object. This way once the "attacker" picks up the object, the round is over. Just running my brain, this isn't just what you wanted help with, but hey, anything to make COD better, I'm all for it!
Share |
Olle_se
General Member
Since: Nov 4, 2004
Posts: 62
Last: Sep 20, 2005
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Thursday, Dec. 16, 2004 12:34 pm
Ok thanks, first i will have a 2 week holliday and then i look into this myself... [biggrin] [casanova]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»