halftrack
Moderator: Moderators
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
halftrack
Is it possible in a mp map that a halftrack spawns drive to a point and then fire to any allied players?
Mapping 4 life
yeah. i dont have much experience with mp scripting, but i think this little bunch might work.
thats just an example of a basic way to do it. not meant for you to actually use that code.
Code: Select all
level waittill roundstart
$halftrack drive $halftrackpath 128 128 128 128
$halftrack thread halftrack_think
end
halftrack_think:
self.gun1 = self queryturretslotentity 0
while (isalive self)
{
for (local.i = 1; local.i <= $player.size; local.i++)
//Local.i equals 1. as long as local.i is less than or equal to the number of players in game, do the loop. at the end of the loop, do it again, but add 1 to local.i
{
if ($halftrack cansee $player[local.i] && $player[local.i].dmteam == "allies")
{
self setaimtarget $player[local.i]
self waittill ontarget
self startfiring
}
}
}
end- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
if i add a halftrack in a mp level i need to makes sounds, how do i do that.
This is the error:
ERROR: Entity::LoopSound: sdkfz_snd_run needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_snd_run needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix
but it 100 times more
This is the error:
ERROR: Entity::LoopSound: sdkfz_snd_run needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_snd_run needs an alias in ubersound.scr or uberdialog.scr - Please fix.
ERROR: Entity::LoopSound: sdkfz_tread_snd_stone needs an alias in ubersound.scr or uberdialog.scr - Please fix
but it 100 times more
Mapping 4 life
hmm, not sure how to make it fire at all allied players since i don't have that much experience mapping mp levels. I can show you where you can go to find out how to make a working sp halftrack. If you have spearhead and the SDK, look at the script for t2l1 which has a halftrack script in it. The SDK should have also came with the bsp for that level so you can take a look at the actual halftrack and use it's keys/values in your halftrack. As for the sounds, take a look at some of the tutorials on this site, there should be one about making custom sounds and editing the ubersound file. You'll probably have to wait for someone more experienced then me to come answer your question about making the halftrack fire at any allied player. I hope what I know so far helps.
- martijn_NL
- Map Reviewer
- Posts: 156
- Joined: Mon Apr 14, 2003 5:33 pm
- Location: The Netherlands
- Contact:
