Quantcast
Channel: Project Reality Forums - PR:BF2 Community Modding
Viewing all articles
Browse latest Browse all 924

[Help] Dummy 'projectile' not working on dedi servers

$
0
0
I'm trying to make a PR Bot that can become invisible for use by admins in the Survival Games / PR-Z mod. It seems to work fine on local, but in the last event, the PR Bot was invisible only to the user and visible to the rest of the players.

I basically coded it like the bombs on jets. The geometry is a dummy projectile which disappears when the weapon is fired, and can be made visible again by reloading. Here's the relevant code:

Code:

ObjectTemplate.create GenericFireArm spectator_camera_prz_weapon3
ObjectTemplate.modifiedByUser "M42Z"
ObjectTemplate.createdInEditor 1
rem ---BeginComp:MultiFireComp ---
ObjectTemplate.createComponent MultiFireComp
ObjectTemplate.fire.addFireRate 0
ObjectTemplate.fire.useDummyProjectiles 1
ObjectTemplate.fire.addBarrelName spectator_camera_mesh_prz
rem ---EndComp ---
rem ---BeginComp:DefaultAmmoComp ---
ObjectTemplate.createComponent DefaultAmmoComp
ObjectTemplate.ammo.nrOfMags -1
ObjectTemplate.ammo.magSize 1
ObjectTemplate.ammo.reloadTime 0.01
ObjectTemplate.ammo.autoReload 0
ObjectTemplate.ammo.reloadWithoutPlayer 0
ObjectTemplate.ammo.toggleWhenNoAmmo 0
rem ---EndComp ---
rem ---BeginComp:DefaultZoomComp ---
ObjectTemplate.createComponent DefaultZoomComp
ObjectTemplate.zoom.addZoomFactor 0
ObjectTemplate.zoom.addZoomFactor 0.25
ObjectTemplate.zoom.mouseSpeedMod 0.05
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate spectator_camera_mesh_prz
rem -------------------------------------
ObjectTemplate.projectileTemplate BlankProjectile
ObjectTemplate.velocity 1000
ObjectTemplate.itemIndex 3

GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.create SimpleObject spectator_camera_mesh_prz
ObjectTemplate.modifiedByUser "M42Z"
ObjectTemplate.cullRadiusScale 10
ObjectTemplate.geometry spectator_camera
rem -------------------------------------
ObjectTemplate.addTemplate e_red_beacon
ObjectTemplate.setPosition 0/0.35/0
rem -------------------------------------

Any ideas?

Viewing all articles
Browse latest Browse all 924

Trending Articles