Buildings glitches

Ask questions, discuss ideas, get answers
Post Reply
code red
Posts: 29
Joined: Wed Jun 30, 2010 3:43 am

Buildings glitches

Post by code red »

I have been attempting to add buildings ss for awhile now and i figured out that to do it they need mobile physics. I have added them and stuff but some buildings jump around on the ground and I was wondering if i might need springs for the buildings to make them sit still? If so I have no experience in spring physics so I may need some help with that. The other problem is the structures (boxes, walls, and bridges) go flying off whenever they spawn. I am using a hold object command to keep them in place. but as soon as i touch them i walk right though them and they go flying off. I am trying to make them exactly like they would be if was a static object but spawn able.

A video showing the error.
http://www.xfire.com/video/4181f5/

Code I am currently using:

In OST

Code: Select all

ObjectTemplate.create ObjectSpawner lighttankspawner
ObjectTemplate.setObjectTemplate 2 stonebridge_sml_m1
ObjectTemplate.setObjectTemplate 1 stonebridge_sml_m1
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.holdObject 1

ObjectTemplate.create ObjectSpawner mediumtankspawner
ObjectTemplate.setObjectTemplate 2 stnwall_smlfrench_m1
ObjectTemplate.setObjectTemplate 1 stnwall_smlfrench_m1
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.holdObject 1

ObjectTemplate.create ObjectSpawner AmphibiousSpawner 
ObjectTemplate.setObjectTemplate 2 stnwall_pelsmlfr_m1
ObjectTemplate.setObjectTemplate 1 stnwall_pelsmlfr_m1
ObjectTemplate.MinSpawnDelay 10
ObjectTemplate.MaxSpawnDelay 30
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.holdObject 1

ObjectTemplate.create ObjectSpawner MotorcycleSpawner
ObjectTemplate.setObjectTemplate 2 stecrate1_m1
ObjectTemplate.setObjectTemplate 1 stecrate1_m1
ObjectTemplate.SpawnDelay 20
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.holdObject 1

ObjectTemplate.create ObjectSpawner ScoutCarSpawner
ObjectTemplate.setObjectTemplate 2 rh_tsp_m1
ObjectTemplate.setObjectTemplate 1 rh_tsp_m1
ObjectTemplate.SpawnDelay 20
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

ObjectTemplate.create ObjectSpawner MachinegunSpawner
ObjectTemplate.setObjectTemplate 2 
ObjectTemplate.setObjectTemplate 1 
ObjectTemplate.MinSpawnDelay 35
ObjectTemplate.MaxSpawnDelay 55
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

ObjectTemplate.create ObjectSpawner JetPackSpawner
ObjectTemplate.setObjectTemplate 2 
ObjectTemplate.setObjectTemplate 1 
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.holdObject 1

ObjectTemplate.create ObjectSpawner NatterSpawner
ObjectTemplate.setObjectTemplate 2 
ObjectTemplate.setObjectTemplate 1 
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200

ObjectTemplate.create ObjectSpawner GoblinSpawner
ObjectTemplate.setObjectTemplate 2 
ObjectTemplate.setObjectTemplate 1
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200

rem ** adding mobile physics **

ObjectTemplate.Active stonebridge_sml_m1
ObjectTemplate.hasMobilePhysics 1

ObjectTemplate.Active stnwall_smlfrench_m1
ObjectTemplate.hasMobilePhysics 1

ObjectTemplate.Active stnwall_pelsmlfr_m1
ObjectTemplate.hasMobilePhysics 1

ObjectTemplate.Active stecrate1_m1
ObjectTemplate.hasMobilePhysics 1

ObjectTemplate.Active rh_tsp_m1
ObjectTemplate.hasMobilePhysics 1
and In OS

Code: Select all

 
Object.create lighttankspawner
Object.absolutePosition 525.80/81.60/658.00
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create lighttankspawner
Object.absolutePosition 473.00/79.00/699.70
Object.rotation 90.00/350.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create lighttankspawner
Object.absolutePosition 471.20/81.40/607.40
Object.rotation 90.00/359.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 501.38/78.00/603.92
Object.rotation 180.00/90.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 501.38/86.00/603.90
Object.rotation 180.00/90.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 501.60/80.47/603.95
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 531.50/82.30/630.00
Object.rotation 0.00/340.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 531.50/87.75/645.00
Object.rotation 0.00/340.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 531.50/90.30/652.50
Object.rotation 0.00/0.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 503.50/80.90/675.46
Object.rotation 90.00/10.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 503.50/80.90/675.50
Object.rotation 90.00/10.00/270.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 513.00/88.80/703.00
Object.rotation 90.00/2.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 513.00/88.80/703.00
Object.rotation 90.00/2.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 499.00/94.45/676.50
Object.rotation 0.00/20.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 499.00/89.00/691.50
Object.rotation 0.00/20.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 499.00/89.00/691.50
Object.rotation 0.00/20.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 499.00/94.45/676.50
Object.rotation 0.00/20.00/270.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 460.50/86.20/662.00
Object.rotation 0.00/20.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 460.60/88.90/652.80
Object.rotation 0.00/90.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 460.60/88.90/654.20
Object.rotation 0.00/0.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 460.60/88.90/653.50
Object.rotation 0.00/0.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/669.80
Object.rotation 0.00/0.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/670.50
Object.rotation 0.00/0.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/671.20
Object.rotation 0.00/0.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/669.80
Object.rotation 0.00/0.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/670.50
Object.rotation 0.00/0.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 457.80/83.35/671.20
Object.rotation 0.00/0.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 457.80/80.80/662.10
Object.rotation 0.00/340.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 443.00/77.70/695.00
Object.rotation 0.00/0.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 440.70/76.00/695.00
Object.rotation 180.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 448.50/76.00/703.00
Object.rotation 270.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 440.54/76.20/703.09
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 443.00/77.70/695.00
Object.rotation 0.00/0.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 448.50/76.00/686.90
Object.rotation 90.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 440.54/76.20/686.90
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 448.50/76.13/686.90
Object.rotation 90.00/0.00/180.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 488.60/95.40/662.00
Object.rotation 90.00/347.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 473.04/91.81/662.00
Object.rotation 90.00/347.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 488.60/95.40/662.00
Object.rotation 90.00/347.00/270.00 
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 473.04/91.81/662.00
Object.rotation 90.00/347.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 505.00/96.54/623.40
Object.rotation 0.00/180.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 505.00/96.45/615.20
Object.rotation 0.00/0.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 512.70/94.80/615.00
Object.rotation 90.00/20.00/90.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 520.80/90.99/616.60
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 522.08/90.99/616.60
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 520.00/90.10/608.40
Object.rotation 0.00/345.00/270.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 522.10/86.90/600.00
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 522.10/86.90/598.73
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 513.90/86.00/600.60
Object.rotation 270.00/15.00/90.00
Object.setOSId 3
Object.setTeam 1

Object.create mediumtankspawner
Object.absolutePosition 462.90/83.70/671.30
Object.rotation 270.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create AmphibiousSpawner
Object.absolutePosition 455.20/83.88/671.30
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 471.50/80.16/677.00
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 473.00/80.16/677.00
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 474.50/80.16/677.00
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 476.00/80.16/677.00
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 477.50/80.16/677.00
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 494.11/80.17/629.54
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 492.26/80.17/629.61
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 493.00/81.46/629.61
Object.rotation 30.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 491.00/80.16/630.61
Object.rotation 50.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.00/80.16/629.64
Object.rotation 220.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.77/81.48/630.13
Object.rotation 13.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 492.10/80.15/669.91
Object.rotation 25.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.84/80.15/671.74
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.33/80.15/670.14
Object.rotation 48.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 489.09/80.15/671.20
Object.rotation 70.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 489.30/80.15/668.99
Object.rotation 60.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.83/80.16/668.40
Object.rotation 50.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.26/81.47/670.89
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.91/81.48/669.27
Object.rotation 320.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 489.36/81.47/669.66
Object.rotation 830.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 490.90/82.72/670.30
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 491.81/81.47/670.68
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 492.27/80.16/671.62
Object.rotation 80.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create 
Object.absolutePosition 
Object.rotation 
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 472.00/80.15/635.00
Object.rotation 20.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 473.60/80.16/634.40
Object.rotation 20.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 475.10/80.16/633.90
Object.rotation 20.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 476.48/80.16/633.40
Object.rotation 20.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 478.00/80.16/632.90
Object.rotation 20.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 473.93/80.14/646.85
Object.rotation 30.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 473.93/80.14/646.85
Object.rotation 30.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 476.00/80.16/658.60
Object.rotation 24530.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 482.07/80.15/640.19
Object.rotation 4384785.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 480.41/80.15/641.57
Object.rotation 43324.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 481.30/81.47/640.63
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 480.50/80.16/640.00
Object.rotation 0.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 477.59/80.14/657.22
Object.rotation 42142.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 476.10/80.14/656.95
Object.rotation 24213.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 477.57/80.14/662.20
Object.rotation 234.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 476.67/81.46/657.50
Object.rotation 7847092736.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 513.21/80.19/652.48
Object.rotation 5234.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 511.04/80.15/651.23
Object.rotation 234.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 513.00/80.15/651.00
Object.rotation 265234.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 511.66/80.26/653.43
Object.rotation 35622.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 511.80/80.16/639.40
Object.rotation 234.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 513.79/80.16/649.74
Object.rotation 432.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 513.03/81.48/650.12
Object.rotation 432.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 512.64/81.54/651.96
Object.rotation 41.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 511.25/81.50/650.88
Object.rotation 134.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 513.06/82.80/650.77
Object.rotation 435.00/0.00/0.00 
Object.setOSId 3
Object.setTeam 1

Object.create MotorcycleSpawner
Object.absolutePosition 511.60/82.85/651.03
Object.rotation 2.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 500.91/80.16/639.40
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 499.30/80.16/639.40
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

Object.create ScoutCarSpawner
Object.absolutePosition 497.80/80.16/639.40
Object.rotation 0.00/0.00/0.00
Object.setOSId 3
Object.setTeam 1

rem EndOfFile
Thanks for any help you guys might give.
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Buildings glithes

Post by fo0k »

lol!

For hold object to work it needs to hold onto another object.. it cant just hold on its own.. although not sure how you would achieve that.

have you tried removing response physics maybe.. Im not too sure.

very interested to se it you can get this working.
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Buildings glithes

Post by Apache Thunder »

Adding static objects do not work as a server side mod and never will. What your probably seeing is client side if your a hosting a server ingame and seeing your results. Try starting it as a dedicated server and connect to it and then you will see that it won't work as all other users who connect will not see any thing. They will be solid though, but not visible.

As for mobile physics on statics, You don't need springs. Just add this:

Code: Select all

ObjectTemplate.inertiaModifier 0/0/0
Either way, this won't work as a server side mod. Plus, you don't need to add statics to a map via spawners like with the vehicles:

Code: Select all

Object.create (Name of your staticobject)
Object.absolutePosition (vec3 position of your object)
Object.rotation (vec3 rotational settings of your object if any)
ImageImageImage
I have cameras in your head!
code red
Posts: 29
Joined: Wed Jun 30, 2010 3:43 am

Re: Buildings glithes

Post by code red »

Yes it currently isn't working ss but I know a old modder who modded the swd demo from launch who had made buildings work serverside and he mentioned it had something to do with physics. I have been attempting to figure it out. The response physics has no change in the server. I understand pretty much all basic coding. I currently have been working on abstract coding that has strange effects that the game was not intended to have. For testing i do use a dedicated local server and i have a pure copy of the game which i join the server with.

I was hoping as i do not post on this site very often that i would not get the closed mind of "its not possible" and instead get suggestions of the physics, as I know a guy who did figure this out a long time ago ,but he hasn't moddified the game since around 2007 and he released his mods as downloads, just hosted them. Ill just work on it some more. thanks for the inertiaModifier tidbit as i had not used/came across that code in my modding.

@
For hold object to work it needs to hold onto another object.. it cant just hold on its own.. although not sure how you would achieve that.
I have used this code before like this. It holds the object to the spawn position until a certain force acts on it. for this it seems to be me running into the buildings/ them colliding. Before I used it on goblins to hold them in place (while floating in a rocket style vertical launch) and the hold object command released when a turbo was activated.

@
Plus, you don't need to add statics to a map via spawners like with the vehicles
Adding objects in staticobjects.con is entirely missing the point. I am trying to make buildings like vehicles and spawn them serverside. I have made clientside custom maps, etc before.
Last edited by code red on Mon Feb 21, 2011 4:06 am, edited 2 times in total.
Jeronimo
Posts: 196
Joined: Sun Dec 27, 2009 8:55 pm
Location: Germany
Contact:

Re: Buildings glithes

Post by Jeronimo »

Sure he didn't just mean that he transformed statics to PCOs (CSM), so he could then spawn them with an ObjectSpawner (SSM)?
Adding mobilePhysics to make the server communicate new static positions to the clientside... and that working... that would be... :shock:

edit: I tried the exact same code using the stone bridge static. I was able to collide with it and have it starting to hop off, as it destroyed all the planes on my airfield after the push, BUT: all that without being visible to me at any time! Which makes it highly doubtful to me you took that video with only the server files altered and the client not having the exact same codes in it.
Image
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

Jeronimo wrote: to make the server communicate new static positions to the clientside...
as much i would like to see this work to i seriously doubt it can ever happen without setNetworkableInfo

but i hope i´m wrong :)
Post Reply