mohaa syntax

General Discussion about Medal of Honor: Allied Assault and Pacific Assault.

Moderator: Moderators

Post Reply
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

mohaa syntax

Post by blue60007 »

I'm in the process of expanding Bjarne's syntax file for textpad. So I need some help in getting all of the commands so far we have:


switch
case
default
break
continue
if
else
while
for
thread
goto
try
catch
wait
waitframe
exec
waitexec
end
triggerable
nottriggerable
runto
walkto
moveup
movedown
moveright
moveleft
moveeast
movewest
movesouth
movenorth
move
time
movedone
animdone
loopsound
stoploopsound
playsound
isAlive


NULL
NIL
string
integer
float
game
level
local
parm
self
group
g_gametype
allies
axis
waittill
prespawn
spawn
roundstart


println
iprintln
iprint
print
iprintlnbold_noloc
getcvar
randomint
gettagposition
angles_toforward
trace
isTouching
light
fogplane
farplane
playsound
hide
show
delete
immediateremove
anim
waitmove
move
setcvar



teamwin
axiswin
allieswin
trigger



If you can help out I'll make note of it. :D


Thanks
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

OK I've added:

isAlive
int
remove
rotateX
rotateY
rotateZ
rotateXdown
rotateYdown
rotateZdown
rotateXup
rotateYup
rotateZup
rotateXdownto
rotateYdownto
rotateZdownto
rotateXupto
rotateYupto
rotateZupto
moveto
auto
body
item
weaponidle
voice
weapon
dialog_secondary
moveForward
moveBackward
sighttrace
abs
randomfloat
stop
lock
unlock
fullheal
takeall
useweaponclass
waitthread
start
physics_off
physics_on
stufftext
tether
turnto
holster
lookat
unholster
farplane_color



I've also got these:

global/DMprecache.scr
global/ambient.scr
global/exploder.scr
global/obj_dm.scr::bomb_thinker
global/door_locked.scr
global/ai.scr
global/ai.scr::spawngroup
global/ai.scr::spawnset
global/ai.scr::spawn
global/missioncomplete.scr
global/disable_ai.scr
global/enable_ai.scr
global/runto.scr


I'm going to look through docs and stock script files...


Also:

ammo
smg
mg
pistol
rifle
heavy
grenade
smokgrenade
volumedamage
crouch
stand
bored
idle
curious


and:


global/items.scr::add_item
global/objectives.scr::add_objectives
global/objectives.scr::current_objectives
global/earthquake.scr


setaimtarget
idlenolights
gun
death
solid
notsolid
attackplayer
TurnOn
northyaw
SetDamage
Radius
explosionoffset
SetCurrent
freezeplayer
releaseplayer
vehicleanim
threatbias
earthquake
turnoff



bind
left
top
bottom
right
iprintlnbold
stopsound
off
turn
stopwatch
say
idlesay
saydone


on
nomessage
level.rain_speed
level.rain_speed_vary
level.rain_length
level.rain_width
level.rain_density
level.rain_slant
level.rain_min_dist
level.rain_numshaders
level.rain_shader
model
cg_playermodel
cache
nodambe
ignoreme
accuracy
damage
hearing
health
sight
maxdist
mindist
leash
ai_off
ai_on
print3d
rotatedown
rotateup

drive
modifydrive
take
weapons/colt45.tik
weapons/p38.tik
weapons/m1_garand.tik
weapons/kar98.tik
weapons/springfield.tik
weapons/kar98sniper.tik
weapons/thompsonsmg.tik
weapons/mp40.tik
weapons/bar.tik
weapons/mp44.tik
weapons/bazooka.tik
weapons/panzerschrek.tik
weapons/shotgun.tik
weapons/silencedpistol.tik


I think I've got all of the popular ones, I don't think I can get every single one.

Next I'm going to tackle the global scripts...
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

OK, I typed out the global scripts:

global/wrenching.scr
global/weather.scr
global/weapon.scr
global/wallclimb.scr
global/walkto.scr
global/vehicles_thinkers.scr
global/update_treads.scr
global/turnto.scr
global/try_throw_grenade.scr
global/track.scr
global/string_format.scr
global/standwalkto.scr
global/standrunto.scr
global/stand.scr
global/spotlight_old.scr
global/spotlight.scr
global/spawner.scr
global/spawn_enemy.scr
global/shutter.scr
global/shootifseen.scr
global/shootatloop.scr
global/shoot.scr
global/setweaponpose.scr
global/setsmoke.scr
global/setisscientist.scr
global/sethelmetfalloff.scr
global/setgroundtype.scr
global/setdeathanim.scr
global/scientist_wallchart.scr
global/scientist_standtable.scr
global/say_to.scr
global/savenames.scr
global/runto_shoot.scr
global/runto.scr
global/reach.scr
global/randomorder.scr
global/pronewalkto.scr
global/proneto.scr
global/prone.scr
global/patrol_path.scr
global/patrol.scr
global/pain.scr
global/objectives.scr
global/obj_dm.scr
global/moveto.scr
global/movecrate.scr
global/model.scr
global/missioncomplete.scr
global/minefield.scr
global/mike_torso.st
global/mike_legs.st
global/mike.st
global/mg42_active.scr
global/mg42.scr
global/message_print.scr
global/makearray.scr
global/loopsound.scr
global/localization.txt
global/loadout_precache.scr
global/loadout.scr
global/killed.scr
global/kill1.scr
global/items.scr
global/inventory.txt
global/headanim.scr
global/hammer.scr
global/grenade_throw.scr
global/giveall.scr
global/fullanim.scr
global/friendly.scr
global/forceanim_scripted.scr
global/forceanim.scr
global/firedeath.scr
global/exploder.scr
global/error.scr
global/entsounds.scr
global/enable_ai.scr
global/EMITTERS.SCR
global/earthquake.scr
global/door_locked.scr
global/DMprecache.scr
global/disc.scr
global/disable_ai.scr
global/dead.scr
global/curiouswalkto.scr
global/crouchto.scr
global/crouchrunto.scr
global/crouchwalkto.scr
global/crouch.scr
global/credits_data.scr
global/credits.scr
global/crate_carry_to.scr
global/crate.scr
global/chainspawner.scr
global/cardgame.scr
global/cabinet.scr
global/bullethit.scr
global/briefing_save.scr
global/breathe.scr
global/bomber.scr
global/barrel.scr
global/autosave.scr
global/animloop.scr
global/anim_scripted.scr
global/anim_noclip.scr
global/anim.scr
global/ambient.scr
global/ambience.scr
global/alarmlight.scr
global/alarmer.scr
global/alarmer_system.scr
global/aimat.scr
global/aim_and_shoot.scr
global/ai_show.scr
global/ai_hide.scr
global/ai.scr
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

are you bored :lol:

most (or quite a lot anyway) people already know the commands but don't know how to use them as they are unsure of the syntax,

if you give examples of what your doing that'll help people more

$player turnto $entity etc...
hope this helps, prob not cos it's all foreign 2 me :-/
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

nuggets wrote:are you bored :laughing out loud:

most (or quite a lot anyway) people already know the commands but don't know how to use them as they are unsure of the syntax,

if you give examples of what your doing that'll help people more

$player turnto $entity etc...

Maybe... :wink:


Well this isn't a tutorial or anything, this is for syntax highlighting in textpad.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

moveto

Post by tltrude »

I don't see "moveto". You should add "()", "[]", and "{}", or are they done some other way?

getcvar()

while()

if()

I take it these are things you can add to the script with one key, but remembering the quick keys would be just as hard as remembering the commands themselves. So, wouldn't it be better for each user to set thier own quick keys--so they'll remember them? And, if it is a dropdown list, a long list would be harder to use.
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Moveto is there.

Things like {}()[] and operators and such get highlighted automatically.
Image
Post Reply