192 lines
3.2 KiB
Plaintext
192 lines
3.2 KiB
Plaintext
#name "turretweapon"
|
|
#dll "configstringconvert"
|
|
#target_dir "weapons/sp/" // target location 1 (single-player)
|
|
#target_dir "weapons/mp/" // target location 2 (multi-player)
|
|
#file_ext "*"
|
|
|
|
// This tells the configstring converter what the file type identifier should be
|
|
string "WEAPONFILE" configstringFileType
|
|
|
|
// This uses the config string convert's multi-target folder
|
|
// mechanism to make the weapon either a single-player weaons
|
|
// or a multi-player weapon.
|
|
// The first character is used to specify which target folder to go in
|
|
enum { "1: Single-Player", "2: Multi-Player" } targetFolder
|
|
|
|
string "none" projectileTrail
|
|
string "turret" weaponClass
|
|
string "none" weaponSlot
|
|
|
|
enum { "bullet", "projectile" } weaponType
|
|
enum { "stand", "prone", "duck" } stance
|
|
|
|
int 1 0 1 projImpactExplode
|
|
int 600 0 10000 projectileSpeed
|
|
int 300 0 10000 explosionRadius
|
|
int 10 0 10000 explosionInnerDamage
|
|
int 10 0 10000 explosionOuterDamage
|
|
|
|
string script
|
|
|
|
int 30 0 1000 damage
|
|
|
|
int 115 0 360 leftArc
|
|
int 115 0 360 rightArc
|
|
int 90 0 360 topArc
|
|
int 90 0 360 bottomArc
|
|
int 0 0 360 grabarc
|
|
float 1 0 1 accuracy
|
|
float 0.05 0.0 10.0 fireTime
|
|
int 20 0 180 animHorRotateInc
|
|
int 100 1 720 horTurnSpeed
|
|
int 100 1 720 vertTurnSpeed
|
|
float 0 0 60 convergenceTime
|
|
float 0 0 1000000 maxRange
|
|
|
|
int 0 0 1 rifleBullet
|
|
|
|
string fireSound
|
|
string loopFireSound
|
|
string stopFireSound
|
|
|
|
string viewFlashEffect
|
|
string worldFlashEffect
|
|
|
|
string reticleCenter
|
|
int 32 1 480 reticleCenterSize
|
|
|
|
string idleAnim
|
|
string fireAnim
|
|
float 46 1 128 playerPositionDist
|
|
|
|
string killIcon
|
|
int 1 0 1 wideKillIcon
|
|
|
|
string useHintString
|
|
|
|
vcontainer
|
|
{
|
|
scrollbox(targetFolder)
|
|
[
|
|
exec
|
|
{
|
|
width(300)
|
|
}
|
|
]
|
|
|
|
scrollbox(stance)
|
|
[
|
|
exec
|
|
{
|
|
width(300)
|
|
}
|
|
]
|
|
|
|
scrollbox(weaponType)
|
|
[
|
|
exec
|
|
{
|
|
width(300)
|
|
}
|
|
]
|
|
|
|
spinedit(damage, 1, 10)
|
|
|
|
spinedit(projectileSpeed, 10, 100)
|
|
spinedit(explosionRadius, 10, 50)
|
|
|
|
spinedit(explosionInnerDamage, 1, 10)
|
|
[
|
|
exec
|
|
{
|
|
width(300)
|
|
labelwidth(160)
|
|
}
|
|
]
|
|
|
|
spinedit(explosionOuterDamage, 1, 10)
|
|
[
|
|
exec
|
|
{
|
|
width(300)
|
|
labelwidth(160)
|
|
}
|
|
]
|
|
|
|
spinedit(leftArc, 1, 10)
|
|
spinedit(rightArc, 1, 10)
|
|
spinedit(topArc, 1, 10)
|
|
spinedit(bottomArc, 1, 10)
|
|
|
|
floatedit(accuracy, 0.1, 0.2)
|
|
floatedit(fireTime, 0.05, 0.2)
|
|
|
|
spinedit(animHorRotateInc, 1, 10)
|
|
|
|
spinedit(horTurnSpeed, 1, 10)
|
|
spinedit(vertTurnSpeed, 1, 10)
|
|
floatedit(convergenceTime, 0.1, 1)
|
|
floatedit(maxRange, 1, 10)
|
|
|
|
edit(script)
|
|
|
|
checkbox(rifleBullet)
|
|
checkbox(projImpactExplode)
|
|
|
|
edit(fireSound)
|
|
edit(loopFireSound)
|
|
edit(stopFireSound)
|
|
|
|
fileedit(viewFlashEffect)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/")
|
|
}
|
|
]
|
|
fileedit(worldFlashEffect)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/")
|
|
}
|
|
]
|
|
fileedit(reticleCenter)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/")
|
|
}
|
|
]
|
|
spinedit(reticleCenterSize, 1, 2)
|
|
|
|
fileedit(idleAnim)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/xanim/")
|
|
width(500)
|
|
}
|
|
]
|
|
fileedit(fireAnim)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/xanim/")
|
|
width(500)
|
|
}
|
|
]
|
|
floatedit(playerPositionDist, 1, 10)
|
|
|
|
fileedit(killIcon)
|
|
[
|
|
exec
|
|
{
|
|
reldir("game/main/")
|
|
}
|
|
]
|
|
checkbox(wideKillIcon)
|
|
edit(useHintString)
|
|
}
|
|
|