PDA

View Full Version : MOHSH: 3rd Person View and MG42's


kelleyi
20th February 2007, 12:17
Just set up a server for the guys in the US Army, 2ID near the DMZ here in Korea but have encountered a problem with the Toggle On/Off Server-Side 3rd Person View compatibility and the Portable MG42's and German Grenade Rifle. Prior to inputing the Toggle On/Off Server-Side 3rd Person into each map, the Portable MG42's (that I added) and the German Grenade Rifle worked fine. Now however, after adding the Toggle On/Off Server-side 3rd Person (to each map)the Portable MG42's and German Grenade Rifle do not work. The Toggle On/Off Server-Side 3rd Person works great on all maps but any map that I have added an MG42 to...the Portable MG42's and German Grenade Rifle do not work. I can pick up the MG42 but when you "left click" nothing happens. Same is ture with the German Grenade Rifle...when you "left click" nothing happens...the grenade doesn't load nor can you fire the rifle with just bullets. I hope it's something relatively simple as I am not a wizard with the "Modding Process". Any assistance from the experts out there would be greatly appreciated! If it will help, below is the code that I entered into each Spearhead Map....again, the Server-side 3rd Person works great...not the MG's and grenade rifle.

Thanks for your time and professionalism.

Dr. Ian R. Kelley
US Forces Korea
'2nd to None'

--------------------Sample Map dm/mohdm4 "Crossroads"-----------------------
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "The Crossroads"
setcvar "g_obj_alliedtext2" "All Weapons Modded"
setcvar "g_obj_alliedtext3" "Press / 3rd Person ON"
setcvar "g_obj_axistext1" "Press . 3rd Person OFF"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "mohdm4"

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waittill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

exec global/door_locked.scr::lock
level.script = maps/dm/mohdm4.scr
exec global/ambient.scr mohdm4

thread global/minefield.scr::minefield_setup

level waittill spawn
$world farclipoverride -1

//brooks
thread hello
thread welcome
thread location

thread tiger
thread xtras
thread plane
thread bigflak
thread werfer
thread 3rdon
thread 3rdoff
thread cheats
thread nocheats

end


bigflak:
spawn statweapons/P_flak88 "targetname" "flakcannon" "classname" "turretweapon_german_flak88"
$flakcannon.origin = ( 375 4595 241)
$flakcannon.angles = (0 225 0)
$flakcannon_turret0 maxyawoffset 80 // changed 35
$flakcannon_turret0 pitchcaps "-50 50 -50" // changed "-20 20 0"
$flakcannon_turret0 turnspeed 30 // changed 15
$flakcannon_turret0 pitchspeed 7.5
$flakcannon_turret0 viewjitter 7
$flakcannon_turret0 firedelay 3 // changed 4
//$flakcannon_turret0.collisionent = $flak88_turret_collision
//$flakcannon.collisionent = $flak88_collision
$flakcannon nodamage

//-------------------------------NEW Test adding werfer------------------------------------//

werfer:

// nebel 1
spawn statweapons/P_nebelwerfer.tik "targetname" "nebel" "classname" "turretweapon_german_nebelwerfer-w"
$nebel.angles = (0 90 0)
$nebel.launchsound = nebelwerfer_launch
$nebel.origin = ( -1482.99 -1012.43 193.35)
$nebel nodamage
spawn script_object "targetname" "nebelwerfer" "classname" "ProjectileGenerator_Heavy"
$nebelwerfer.angles = (0 90 0)
$nebelwerfer.launchsound = nebelwerfer_launch
$nebelwerfer.projectile = projectile/nebelwerferproj.tik
$nebelwerfer.spawnflags = 128
$nebelwerfer nodamage

$nebel immune bullet
$nebel immune fast_bullet
$nebel immune bash
$nebel.collisionent = $nebelwerfer_collision
$nebel_turret0.collisionent = $nebelwerfer_turret_collision
$nebel_turret0 immune bullet
$nebel_turret0 immune fast_bullet
$nebel_turret0 immune bash
$nebel_turret0 thread global/turret.scr::playerturret_proj_think_aim $nebel $nebelwerfer

$nebel_turret0 maxyawoffset 115.0
$nebel_turret0 turnspeed 45
$nebel_turret0 pitchspeed 45
$nebel_turret0 pitchcaps "-50 50 -50" //"-50 -50 50"stuck high//"-50 10 -50"high no low//"50 10 50"half high//"-50 10 50"high but not low//"-0 10 0"nothing//changed"-50 10 0"
$nebel_turret0 viewjitter 1
$nebel_turret0 firedelay 1.5 // changed 0.08


//-------------------------TEST FIRE THAT HURTS-------------------------------------//

local.fire = spawn script_model
local.fire model "emitters/fireandsmoke.tik"
local.fire.origin = ( -79.66 2388.45 240.13)
local.fire.angles = (0 133 0)
local.fire notsolid
local.fire.targetname = "myfire1"
local.fire thread firehurts

local.fire = spawn script_model
local.fire model "emitters/fireandsmoke.tik"
local.fire.origin = ( 443.13 1648.81 237.35)
local.fire.angles = (0 133 0)
local.fire notsolid
local.fire.targetname = "myfire2"
local.fire thread firehurts


//-----------------------------Test sandbags--------------------------------------//

local.sand = spawn script_model
local.sand model "static/sandbag_link_bottomcap.tik"
local.sand.origin = ( -42.76 -2701.32 240.13)
local.sand.angles = (0 90 0)
local.sand solid
local.sand nodamage
local.sand immune bash
local.sand immune explosion

local.sand = spawn script_model
local.sand model "static/sandbag_link_main.tik"
local.sand.origin = ( -118.76 -2701.32 240.13)
local.sand.angles = (0 90 0)
local.sand solid
local.sand nodamage
local.sand immune bash
local.sand immune explosion

local.sand = spawn script_model
local.sand model "static/sandbag_link_topcap.tik"
local.sand.origin = ( -194.76 -2701.32 240.13)
local.sand.angles = (0 90 0)
local.sand solid
local.sand nodamage
local.sand immune bash
local.sand immune explosion

end


//If you play with fire you might get burned as we say in Sweden!

firehurts:
self loopsound fire_large
while(1)
{
for(local.i=1;local.i <= $player.size ; local.i++)
{
if ( $player[local.i] istouching self)
{
self volumedamage 1
$player[local.i] playsound player_death
}
}
waitframe
}
end


//-----------------------------------------------------------------------------//

//-----------------------------------------------------------------------------

xtras:
spawn weapons/mg42carryable "targetname" "xtra1"
$xtra1.origin = ( -185 -2404 260)
$xtra1.angles = (0 270 0)

spawn weapons/kar98sniper "targetname" "xtra2"
$xtra2.origin = ( -477 1374 745)
$xtra2.angles = (0 270 0)

spawn weapons/enfield "targetname" "xtra3"
$xtra3.origin = ( -3 4531 260)
$xtra3.angles = (0 270 0)
end

//----------------------------------------------------------------------------//

//-----------------------------------------------------------------------------

location:
println $player[1].origin
println $player[1].angles
wait 5
goto location
end

//-----------------------------------------------------------------------------

hello:
wait 30
iprintlnbold "Welcome to a true battle server. ALL weapons are modded.
iprintlnbold "Fast fire, more accuracy, less recoil, and larger clips on most guns."
end

//-----------------------------------------------------------------------------

welcome:
wait 60
iprintlnbold "Double-click scopes on rifles and mp44. Scopes on rockets and snipers."
wait 60
iprintlnbold "Shotgun is double distance"
wait 60
iprintlnbold "Rockets are semi-auto"
wait 60
iprintlnbold "Some rifles are semi-auto when running"
wait 60
iprintlnbold "Axis handguns can bash from a distance, and allied handguns are very accurate"
wait 60
iprintlnbold "Machine guns work better in short bursts"
goto welcome
end

//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end


3rdon:
$player stufftext ("bind / cg_3rd_person 1")
wait 1
thread 3rdon
end

3rdoff:
$player stufftext ("bind . cg_3rd_person 0")
wait 1
thread 3rdoff
end

cheats:
setcvar "cheats" "1"
setcvar "thereisnomonkey" "1"
wait 1
thread cheats
end

nocheats:
$player stufftext ("developer 0")
$player stufftext ("alias dog say I'm trying to use dog!!!!!!! KICK ME! KICK ME!")
$player stufftext ("alias tele say I'm trying to use tele!!!!!!! KICK ME! KICK ME!")
$player stufftext ("alias fullheal say I'm trying to use fullheal!!!!!!! KICK ME! KICK ME!bind w kill")
$player stufftext ("alias noclip say I'm trying to use noclip!!!!!!! KICK ME! KICK ME!")
$player stufftext ("alias give say I'm trying to use give all!!!!!!! KICK ME! KICK ME!")
$player stufftext ("alias wuss say I'm trying to use wuss!!!!!!! KICK ME! KICK ME!")
$player stufftext ("alias lod_spawn say I'm trying to crash the server!!!!!!! KICK ME! KICK ME!")
wait 1
thread nocheats
end

------------------------------------------------------------------------------------