Jump to content
Official BF Editor Forums

A-Train

Members
  • Content Count

    203
  • Joined

  • Last visited

Community Reputation

0 Neutral

About A-Train

  • Rank
    Member
  • Birthday 05/21/1982

Contact Methods

  • Website URL
    http://www.EMSGamers.com
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Location
    EA's Central Hub of the Gaming World.
  • Interests
    Coding! SHHH Don't tell anybody, but I'm working on a new game project.
  1. my tactical ballistics mod has a Poison Gas grenade, but I coded it differently to create a kill message. It was also a bit laggier. I ended up coding it so that you had a primary and a secondary projectile template. The primary would be the smoke grenade, and the secondary would be a "batch" explosion grenade that would go off randomly, killing players and giving a kill message. The effect was perfect like a gas grenade but a bit laggy. You might want to go this route.
  2. ObjectTemplate.weaponHud.hudName "WEAPON_NAME_smokegrenade" That line right there tells the server what to call the kill message. You can customize it by simply typing... ObjectTemplate.weaponHud.hudName "Poison Gas" If you want it to give you an actual kill message each time you use it against a player, then it gets more complicated. ObjectTemplate.timeToLive CRD_NONE/4/0/0 That code tells the game how long to keep the "grenade" itself a live before disappearing or exploding. If you want the gas cloud to appear at the same time your effect does, you simply do this: rem *** Generated with Bf2Editor.exe [created: 2005/1/26 11:28] ObjectTemplate.activeSafe EffectBundle e_hgr_SmokeGrenade ObjectTemplate.modifiedByUser dsu ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_e_hgr_SmokeGrenade_Start ObjectTemplate.addTemplate em_hgr_Smokegrenade_smoke ObjectTemplate.addTemplate em_hgr_Smokegrenade_sidesmoke ObjectTemplate.addTemplate em_hgr_Smokegrenade_smoke2big ObjectTemplate.addTemplate em_hgr_SmokGrenade_smoke2bigger rem ## Add Poison Gas Effect ## ObjectTemplate.addTemplate hgr_smoke_SupplyObject rem ------------------------------------- ObjectTemplate.setStartOnEffects 0 ObjectTemplate.setStopOnEffects 0 ObjectTemplate.timeToLive CRD_NONE/10/0/0 ObjectTemplate.randomAgeFactor CRD_NONE/1/0/0 ObjectTemplate.startAtCreation 0 ObjectTemplate.speedFromPhysics 0 ObjectTemplate.activeSafe Sound S_e_hgr_SmokeGrenade_Start ObjectTemplate.modifiedByUser dsu ObjectTemplate.soundFilename "objects/weapons/handheld/hgr_smoke/sounds/smoke_grenade_01.wav,objects/weapons/handheld/hgr_smoke/sounds/smoke_grenade_02.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 1 ObjectTemplate.volume 1 ObjectTemplate.pitch 0.7 ObjectTemplate.reverbLevel 1 ObjectTemplate.minDistance 3 ObjectTemplate.halfVolumeDistance 8 ObjectTemplate.create SpriteParticleSystem em_hgr_Smokegrenade_smoke ObjectTemplate.modifiedByUser dsu ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance Medium ObjectTemplate.emitterType Standard ObjectTemplate.isLocalSystem 0 ObjectTemplate.emitRadius 0.1/0.1/0.1 ObjectTemplate.emitRangeX CRD_NONE/0/0/0 ObjectTemplate.emitRangeY CRD_NONE/0/0/0 ObjectTemplate.emitRangeZ CRD_NONE/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 0 ObjectTemplate.preWarmTime 0 ObjectTemplate.emitTime 0 ObjectTemplate.emitDelay 0 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 1 ObjectTemplate.emitDirection 0/0/0 ObjectTemplate.timeToLive 1.5 ObjectTemplate.randomTimeToLive 1 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/0/-1/1 ObjectTemplate.alignRotationToSpeed 0 ObjectTemplate.transparencyGraph 0/-0.5/0/0.5 ObjectTemplate.gravity 0.5 ObjectTemplate.gravityGraph 0/-0.18/0.52/0.66 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/-0.55/-0.42/1 ObjectTemplate.randomSpeed 0.3 ObjectTemplate.randomDirectionAngle 15/0/15 ObjectTemplate.airResistance 0.3 ObjectTemplate.collisionEnable 0 ObjectTemplate.collisionSpeedAlongNormal 0.7 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 0.2 ObjectTemplate.particleMaxSize 0.85 ObjectTemplate.sizeGraph 0.01/0.44/0.1/0.44 ObjectTemplate.randomIntensity 0.1 ObjectTemplate.lightMapIntensityOffset 0.5 ObjectTemplate.color1 0.521569/0.521569/0.521569 ObjectTemplate.color2 0.431373/0.431373/0.431373 ObjectTemplate.colorBlendGraph 0/0.3/0.7/0 ObjectTemplate.alphaCull 0.2 ObjectTemplate.particleType Sorted ObjectTemplate.drawOrder Back ObjectTemplate.randomRotation 360 ObjectTemplate.randomRotationSpeed 1 ObjectTemplate.rotationSpeed 1 ObjectTemplate.pivotOffset 0/0 ObjectTemplate.selfShadowIntensity 0.7 ObjectTemplate.textureName objects\effects\textures\animated\Anim_smoke2 ObjectTemplate.animationEnable 1 ObjectTemplate.animationSpeed 8 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0.5 ObjectTemplate.setAnimationFrameHeightRelative 0.5 ObjectTemplate.animationRandomizedStartFrame 0 ObjectTemplate.animationFrameCount 4 ObjectTemplate.animationFrameCountX 2 ObjectTemplate.create SpriteParticleSystem em_hgr_Smokegrenade_sidesmoke ObjectTemplate.modifiedByUser dsu ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance Low ObjectTemplate.emitterType RadialDirection ObjectTemplate.isLocalSystem 0 ObjectTemplate.emitRadius 0/0/0.1 ObjectTemplate.emitRangeX CRD_UNIFORM/1/0/1 ObjectTemplate.emitRangeY CRD_UNIFORM/1/0/1 ObjectTemplate.emitRangeZ CRD_UNIFORM/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 55 ObjectTemplate.preWarmTime 0 ObjectTemplate.emitTime 0.1 ObjectTemplate.emitDelay 0 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 8 ObjectTemplate.emitDirection 0/1/0 ObjectTemplate.timeToLive 0.15 ObjectTemplate.randomTimeToLive 0 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/-0.16/0.64/0.52 ObjectTemplate.alignRotationToSpeed 1 ObjectTemplate.transparencyGraph 0/0.5/-1.5/1 ObjectTemplate.gravity 0 ObjectTemplate.gravityGraph 0/0/0/1 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/0/0/1 ObjectTemplate.randomSpeed 0 ObjectTemplate.randomDirectionAngle 0/0/0 ObjectTemplate.airResistance 0.5 ObjectTemplate.collisionEnable 0 ObjectTemplate.collisionSpeedAlongNormal 0.7 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 0.5 ObjectTemplate.particleMaxSize 10 ObjectTemplate.sizeGraph 0/-0.35/1/0.35 ObjectTemplate.randomIntensity 0.1 ObjectTemplate.lightMapIntensityOffset 0.5 ObjectTemplate.color1 0.654902/0.654902/0.654902 ObjectTemplate.color2 0.745098/0.745098/0.745098 ObjectTemplate.colorBlendGraph 0/0/1/0 ObjectTemplate.alphaCull 0.2 ObjectTemplate.particleType Sorted ObjectTemplate.drawOrder Back ObjectTemplate.randomRotation 0 ObjectTemplate.randomRotationSpeed 0 ObjectTemplate.rotationSpeed 0 ObjectTemplate.pivotOffset 0/0 ObjectTemplate.selfShadowIntensity 0.6 ObjectTemplate.textureName objects\effects\textures\blood\blood4 ObjectTemplate.animationEnable 0 ObjectTemplate.animationSpeed 2 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0.25 ObjectTemplate.setAnimationFrameHeightRelative 0.25 ObjectTemplate.animationRandomizedStartFrame 0 ObjectTemplate.animationFrameCount 2 ObjectTemplate.animationFrameCountX 4 ObjectTemplate.create SpriteParticleSystem em_hgr_Smokegrenade_smoke2big ObjectTemplate.modifiedByUser dsu ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance Medium ObjectTemplate.emitterType Standard ObjectTemplate.isLocalSystem 0 ObjectTemplate.emitRadius 0.2/0.2/0.2 ObjectTemplate.emitRangeX CRD_NONE/0/0/0 ObjectTemplate.emitRangeY CRD_NONE/0/0/0 ObjectTemplate.emitRangeZ CRD_NONE/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 111 ObjectTemplate.preWarmTime 0.2 ObjectTemplate.emitTime 0.2 ObjectTemplate.emitDelay 0.05 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 100 ObjectTemplate.emitDirection 0/1/0 ObjectTemplate.timeToLive 8 ObjectTemplate.randomTimeToLive 2 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/0/-1/1 ObjectTemplate.alignRotationToSpeed 0 ObjectTemplate.transparencyGraph -0.64/-3.2/2.8/1 ObjectTemplate.gravity -0.1 ObjectTemplate.gravityGraph 0/-0.18/0.52/0.66 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/0.75/0/0.25 ObjectTemplate.randomSpeed 10 ObjectTemplate.randomDirectionAngle 360/360/360 ObjectTemplate.airResistance 0.9 ObjectTemplate.collisionEnable 1 ObjectTemplate.collisionSpeedAlongNormal 0.1 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 1 ObjectTemplate.particleMaxSize 4 ObjectTemplate.sizeGraph 1/-2.3/1.9/0.39 ObjectTemplate.randomIntensity 0 ObjectTemplate.lightMapIntensityOffset 0.5 ObjectTemplate.color1 0.772549/0.772549/0.772549 ObjectTemplate.color2 0.713726/0.713726/0.713726 ObjectTemplate.colorBlendGraph 0/0.3/0.7/0 ObjectTemplate.alphaCull 0.2 ObjectTemplate.particleType Sorted ObjectTemplate.drawOrder Back ObjectTemplate.randomRotation 360 ObjectTemplate.randomRotationSpeed -0.25 ObjectTemplate.rotationSpeed 0.25 ObjectTemplate.pivotOffset 0/-0.2 ObjectTemplate.selfShadowIntensity 0.5 ObjectTemplate.textureName objects\effects\textures\animated\Anim_smoke ObjectTemplate.animationEnable 1 ObjectTemplate.animationSpeed 0.5 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0.5 ObjectTemplate.setAnimationFrameHeightRelative 0.5 ObjectTemplate.animationRandomizedStartFrame 1 ObjectTemplate.animationFrameCount 4 ObjectTemplate.animationFrameCountX 2 ObjectTemplate.create SpriteParticleSystem em_hgr_SmokGrenade_smoke2bigger ObjectTemplate.modifiedByUser dsu ObjectTemplate.createdInEditor 1 ObjectTemplate.showInFirstPerson 1 ObjectTemplate.showInThirdPerson 1 ObjectTemplate.emitPrio High ObjectTemplate.lodDistance High ObjectTemplate.emitterType Standard ObjectTemplate.isLocalSystem 0 ObjectTemplate.emitRadius 0.2/0.2/0.2 ObjectTemplate.emitRangeX CRD_NONE/0/0/0 ObjectTemplate.emitRangeY CRD_NONE/0/0/0 ObjectTemplate.emitRangeZ CRD_NONE/0/0/0 ObjectTemplate.randomRadialDirection 360 ObjectTemplate.radialDirection 0 ObjectTemplate.emitFrequency 111 ObjectTemplate.preWarmTime 0.2 ObjectTemplate.emitTime 0.2 ObjectTemplate.emitDelay 0 ObjectTemplate.isLooping 0 ObjectTemplate.emitSpeed 200 ObjectTemplate.emitDirection 0/1/0 ObjectTemplate.timeToLive 10 ObjectTemplate.randomTimeToLive 2 ObjectTemplate.windAffectionFactor 0 ObjectTemplate.forceToWaterSurface 0 ObjectTemplate.waterSurfaceOffset 0.03 ObjectTemplate.rotationGraph 0/0/-1/1 ObjectTemplate.alignRotationToSpeed 0 ObjectTemplate.transparencyGraph 0.3/-1.65/1.35/0 ObjectTemplate.gravity -0.25 ObjectTemplate.gravityGraph 0/-0.18/0.52/0.66 ObjectTemplate.airResistanceGraph 0/0/0/1 ObjectTemplate.emitSpeedGraph 0/0.75/0/0.25 ObjectTemplate.randomSpeed 20 ObjectTemplate.randomDirectionAngle 360/360/360 ObjectTemplate.airResistance 0.8 ObjectTemplate.collisionEnable 1 ObjectTemplate.collisionSpeedAlongNormal 0.1 ObjectTemplate.collisionSpeedAlongPlane 0.8 ObjectTemplate.randomSize 1 ObjectTemplate.particleMaxSize 8 ObjectTemplate.sizeGraph 1/-2.3/1.9/0.39 ObjectTemplate.randomIntensity 0 ObjectTemplate.lightMapIntensityOffset 0.5 ObjectTemplate.color1 0.772549/0.772549/0.772549 ObjectTemplate.color2 0.713726/0.713726/0.713726 ObjectTemplate.colorBlendGraph 0/0.3/0.7/0 ObjectTemplate.alphaCull 0.2 ObjectTemplate.particleType Sorted ObjectTemplate.drawOrder Back ObjectTemplate.randomRotation 360 ObjectTemplate.randomRotationSpeed -0.25 ObjectTemplate.rotationSpeed 0.25 ObjectTemplate.pivotOffset 0/-0.2 ObjectTemplate.selfShadowIntensity 0.5 ObjectTemplate.textureName objects\effects\textures\animated\Anim_smoke ObjectTemplate.animationEnable 1 ObjectTemplate.animationSpeed 0.5 ObjectTemplate.animationPlayOnce 0 ObjectTemplate.setAnimationFrameWidthRelative 0.5 ObjectTemplate.setAnimationFrameHeightRelative 0.5 ObjectTemplate.animationRandomizedStartFrame 1 ObjectTemplate.animationFrameCount 4 ObjectTemplate.animationFrameCountX 2 rem ## Poison Gas Effect ## ObjectTemplate.create SupplyObject hgr_smoke_SupplyObject ObjectTemplate.modifiedByUser psh ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.radius 5 ObjectTemplate.damageSpeed 10 This should work. Let me know.
  3. Sorry for the stretching of the screen. Silly code.
  4. Here's the completed code. Took me about 1 minute 12 seconds to find and copy and paste and slightly edit. rem *** Generated with Bf2Editor.exe [created: 2005/3/31 15:44] GeometryTemplate.compressVertexData 1 GeometryTemplate.maxTextureRepeat 16 ObjectTemplate.activeSafe GenericFireArm hgr_smoke ObjectTemplate.creator TLO-1:tlo ObjectTemplate.modifiedByUser fli ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.castsDynamicShadow 1 rem ---BeginComp:WeaponHud --- ObjectTemplate.createComponent WeaponHud ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\HGR_Smoke.tga ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\USLMG_M249SAW_mini.tga ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\HGR_Smoke.tga ObjectTemplate.weaponHud.specialAbilityIcon Ingame\Weapons\Icons\Hud\SpecialKitIcons\smokegrenade.tga ObjectTemplate.weaponHud.hudName "WEAPON_NAME_smokegrenade" ObjectTemplate.weaponHud.altGuiIndex 5 ObjectTemplate.weaponHud.hasFireRate 0 ObjectTemplate.weaponHud.disableOnSprint 1 rem ---EndComp --- rem ---BeginComp:Radio --- ObjectTemplate.createComponent Radio ObjectTemplate.Radio.useMessage AUTO_MOODGP_throwingsmokegrenade rem ---EndComp --- rem ---BeginComp:ThrownFireComp --- ObjectTemplate.createComponent ThrownFireComp ObjectTemplate.fire.fireLaunchDelay 0.39 ObjectTemplate.fire.altFireInput PIAltFire ObjectTemplate.fire.addFireRate 0 ObjectTemplate.fire.projectileStartPosition 0/0/0.18 ObjectTemplate.fire.fireLaunchDelaySoft 0.8 ObjectTemplate.fire.showWeaponAfterReloadDelay 0.05 ObjectTemplate.fire.pullBackTime 0.45 ObjectTemplate.fire.projectileStartRotation 0/0/45 ObjectTemplate.fire.randomRotationSpeed 4 rem ---EndComp --- rem ---BeginComp:DefaultAmmoComp --- ObjectTemplate.createComponent DefaultAmmoComp ObjectTemplate.ammo.ammoType 1 ObjectTemplate.ammo.nrOfMags 1 ObjectTemplate.ammo.magSize 1 ObjectTemplate.ammo.reloadTime 0.7 ObjectTemplate.ammo.minimumTimeUntilReload 0.5 ObjectTemplate.ammo.autoReload 1 ObjectTemplate.ammo.instantReloadOnEnable 1 ObjectTemplate.ammo.toggleWhenNoAmmo 1 rem ---EndComp --- rem ---BeginComp:SoldierDeviationComp --- ObjectTemplate.createComponent SoldierDeviationComp ObjectTemplate.deviation.minDev 2 ObjectTemplate.deviation.setTurnDev 0 0 0 0 ObjectTemplate.deviation.setSpeedDev 0 0 0 0 ObjectTemplate.deviation.setMiscDev 0 0 0 rem ---EndComp --- rem ---BeginComp:DefaultSoundComp --- ObjectTemplate.createComponent DefaultSoundComp ObjectTemplate.sound.noisy 0 rem ---EndComp --- rem ---BeginComp:ThrownAnimationComp --- ObjectTemplate.createComponent ThrownAnimationComp rem ---EndComp --- ObjectTemplate.geometry hgr_smoke ObjectTemplate.setCollisionMesh hgr_smoke ObjectTemplate.mapMaterial 0 Collision_Material 46 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.physicsType Mesh rem ------------------------------------- ObjectTemplate.addTemplate S_hgr_smoke_Fire1P ObjectTemplate.addTemplate S_hgr_smoke_Fire1P_Outdoor ObjectTemplate.addTemplate S_hgr_smoke_Fire3P ObjectTemplate.addTemplate S_hgr_smoke_BoltClick ObjectTemplate.addTemplate S_hgr_smoke_TriggerClick ObjectTemplate.addTemplate S_hgr_smoke_SwitchFireRate ObjectTemplate.addTemplate S_hgr_smoke_Reload1P ObjectTemplate.addTemplate S_hgr_smoke_Reload3P ObjectTemplate.addTemplate S_hgr_smoke_Deploy1P ObjectTemplate.addTemplate S_hgr_smoke_Deploy3P ObjectTemplate.addTemplate S_hgr_smoke_Zoom rem ------------------------------------- ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/hgr_smoke/AnimationSystem1p.inc ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/hgr_smoke/AnimationSystem3p.inc ObjectTemplate.projectileTemplate hgr_smoke_Projectile ObjectTemplate.velocity 20 ObjectTemplate.itemIndex 5 ObjectTemplate.delayToUse 0.6 GeometryTemplate.compressVertexData 1 GeometryTemplate.maxTextureRepeat 16 ObjectTemplate.create GenericProjectile hgr_smoke_Projectile ObjectTemplate.modifiedByUser fli ObjectTemplate.setNetworkableInfo BasicInfo ObjectTemplate.createNotInGrid 1 ObjectTemplate.createdInEditor 1 rem ---BeginComp:DefaultCollisionComp --- ObjectTemplate.createComponent DefaultCollisionComp ObjectTemplate.collision.bouncing 1 rem ---EndComp --- rem ---BeginComp:DefaultDetonationComp --- ObjectTemplate.createComponent DefaultDetonationComp ObjectTemplate.detonation.explosionMaterial 0 ObjectTemplate.detonation.explosionRadius 0 ObjectTemplate.detonation.explosionYMod 0 ObjectTemplate.detonation.explosionForce 0 ObjectTemplate.detonation.explosionDamage 0 ObjectTemplate.detonation.detonateOnWaterCollision 0 ObjectTemplate.detonation.endEffectTemplate e_hgr_smokegrenade ObjectTemplate.detonation.detectionRadius 0 rem ---EndComp --- rem ---BeginComp:DefaultProjSoundComp --- ObjectTemplate.createComponent DefaultProjSoundComp rem ---EndComp --- rem ---BeginComp:DefaultPenetrateComp --- ObjectTemplate.createComponent DefaultPenetrateComp ObjectTemplate.penetrate.allowSolidPenetration 0 rem ---EndComp --- ObjectTemplate.geometry hgr_smoke ObjectTemplate.setCollisionMesh hgr_smoke ObjectTemplate.mapMaterial 0 Collision_Material 46 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 1 ObjectTemplate.hasCollisionPhysics 1 ObjectTemplate.physicsType RotationalPoint ObjectTemplate.collisionGroups 8 ObjectTemplate.material 46 rem ------------------------------------- ObjectTemplate.addTemplate S_hgr_smoke_Projectile_Looping rem ## Add Poison Gas Effect ## ObjectTemplate.addTemplate hgr_smoke_SupplyObject rem ------------------------------------- ObjectTemplate.timeToLive CRD_NONE/4/0/0 ObjectTemplate.material 46 ObjectTemplate.hasOnTimeEffect 1 ObjectTemplate.localPredictOnClient 1 ObjectTemplate.minDamage 0.2 ObjectTemplate.damage 0 ObjectTemplate.damageOwner 1 ObjectTemplate.activeSafe Sound S_hgr_smoke_Fire1P ObjectTemplate.modifiedByUser fli ObjectTemplate.soundFilename "objects/weapons/handheld/ushgr_m67/sounds/m67_throw_complete.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_pin.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_throw_small.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_throw_big.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.55 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/ ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/ ObjectTemplate.activeSafe Sound S_hgr_smoke_Fire1P_Outdoor ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_Fire3P ObjectTemplate.modifiedByUser fli ObjectTemplate.soundFilename "objects/weapons/handheld/ushgr_m67/sounds/m67_throw_complete.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_pin.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_throw_small.wav,objects/weapons/handheld/ushgr_m67/sounds/m67_throw_big.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.55 ObjectTemplate.pitch 1 ObjectTemplate.reverbLevel 1 ObjectTemplate.pitchEnvelope 0/1/0.9/1.1/1/1/0/0.97/1.03/ ObjectTemplate.volumeEnvelope 0/1/0/1/1/1/0/0.9/1/ ObjectTemplate.minDistance 2 ObjectTemplate.halfVolumeDistance 4 ObjectTemplate.activeSafe Sound S_hgr_smoke_BoltClick ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_TriggerClick ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_SwitchFireRate ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_Reload1P ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_Reload3P ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_Deploy1P ObjectTemplate.modifiedByUser fli ObjectTemplate.soundFilename "objects/weapons/handheld/ushgr_m67/sounds/m67_deploy.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 0 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.31 ObjectTemplate.pitch 1 ObjectTemplate.pan 0.5 ObjectTemplate.reverbLevel 1 ObjectTemplate.activeSafe Sound S_hgr_smoke_Deploy3P ObjectTemplate.modifiedByUser fli ObjectTemplate.soundFilename "objects/weapons/handheld/ushgr_m67/sounds/m67_deploy.wav" ObjectTemplate.loopCount 1 ObjectTemplate.is3dSound 1 ObjectTemplate.stopType 1 ObjectTemplate.volume 0.3 ObjectTemplate.pitch 1 ObjectTemplate.reverbLevel 1 ObjectTemplate.minDistance 0.5 ObjectTemplate.halfVolumeDistance 1 ObjectTemplate.activeSafe Sound S_hgr_smoke_Zoom ObjectTemplate.modifiedByUser fli ObjectTemplate.activeSafe Sound S_hgr_smoke_Projectile_Looping ObjectTemplate.modifiedByUser fli rem ## Poison Gas Effect ## ObjectTemplate.create SupplyObject hgr_smoke_SupplyObject ObjectTemplate.modifiedByUser psh ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.radius 5 ObjectTemplate.damageSpeed 10 Here's the code that makes the poison gas effect: rem ## Add Poison Gas Effect ## ObjectTemplate.addTemplate hgr_smoke_SupplyObject rem ## Poison Gas Effect ## ObjectTemplate.create SupplyObject hgr_smoke_SupplyObject ObjectTemplate.modifiedByUser psh ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 ObjectTemplate.radius 5 ObjectTemplate.damageSpeed 10 couple things to add: This "gas grenade" only lasts 4 seconds. If you want it to last longer, change this: ObjectTemplate.timeToLive CRD_NONE/4/0/0 to ObjectTemplate.timeToLive CRD_NONE/60/0/0 or however long you want it to last in seconds. Please note that if you want the "illusion" of a gas cloud to last longer then you have to get more advanced, and there are several ways of doing that. You will have the "gas effect" in this grenade last for whatever time you want, but the "visual" effect of this gas grenade will only last about 5 seconds ish.
  5. heh, I've always wanted a cow in the game, so i'm trying to code it.
  6. alright, i created a new aircraft today that flies and lands on water. Only problem is, I'm having issues trying to get it to stay up on top of the water. Here's samples of the code: ObjectTemplate.drag 0.001 ObjectTemplate.mass 10000 ObjectTemplate.gravityModifier 2.7 ObjectTemplate.floaterMod 0 ObjectTemplate.centerOfMassOffset 0/-1.5/0 That's the important info (don't ask about the center of mass offset, it's done like that for a reason). rem ## Floaters ## ObjectTemplate.addTemplate fat_cow_VerticalBodyWing ObjectTemplate.setRotation 0/0/-90 beginrem ObjectTemplate.addTemplate fat_cow_FloaterFrontLeft ObjectTemplate.setPosition -1.1/-0.4/2.6 ObjectTemplate.addTemplate fat_cow_FloaterFrontRight ObjectTemplate.setPosition 1.1/-0.4/2.6 ObjectTemplate.addTemplate fat_cow_FloaterRearLeft ObjectTemplate.setPosition -1.1/-0.4/-2 ObjectTemplate.addTemplate fat_cow_FloaterRearRight ObjectTemplate.setPosition 1.1/-0.4/-2 endrem ObjectTemplate.addTemplate fat_cow_FloaterFrontLeft ObjectTemplate.setPosition -1/1.9/4 ObjectTemplate.addTemplate fat_cow_FloaterFrontRight ObjectTemplate.setPosition 1/1.9/4 ObjectTemplate.addTemplate fat_cow_FloaterRearLeft ObjectTemplate.setPosition -1/1.9/-4 ObjectTemplate.addTemplate fat_cow_FloaterRearRight ObjectTemplate.setPosition 1/1.9/-4 later on down the file, i have: rem ## Floaters ## ObjectTemplate.create FloatingBundle fat_cow_FloaterFrontLeft ObjectTemplate.modifiedByUser "AwesomeATrain" ObjectTemplate.setNetworkableInfo BasicInfo ObjectTemplate.createdInEditor 1 ObjectTemplate.dragModifier 0/0/0 ObjectTemplate.mass 0 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- rem ------------------------------------- ObjectTemplate.setHullHeight 0.5 ObjectTemplate.setFloatMaxLift 8 ObjectTemplate.setFloatMinLift 0 ObjectTemplate.create FloatingBundle fat_cow_FloaterFrontRight ObjectTemplate.modifiedByUser "AwesomeATrain" ObjectTemplate.setNetworkableInfo BasicInfo ObjectTemplate.createdInEditor 1 ObjectTemplate.dragModifier 0/0/0 ObjectTemplate.mass 0 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- rem ------------------------------------- ObjectTemplate.setHullHeight 0.5 ObjectTemplate.setFloatMaxLift 8 ObjectTemplate.setFloatMinLift 0 ObjectTemplate.create FloatingBundle fat_cow_FloaterRearLeft ObjectTemplate.modifiedByUser "AwesomeATrain" ObjectTemplate.setNetworkableInfo BasicInfo ObjectTemplate.createdInEditor 1 ObjectTemplate.dragModifier 0/0/0 ObjectTemplate.mass 0 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- rem ------------------------------------- ObjectTemplate.setHullHeight 0.5 ObjectTemplate.setFloatMaxLift 8 ObjectTemplate.setFloatMinLift 0 ObjectTemplate.create FloatingBundle fat_cow_FloaterRearRight ObjectTemplate.modifiedByUser "AwesomeATrain" ObjectTemplate.setNetworkableInfo BasicInfo ObjectTemplate.createdInEditor 1 ObjectTemplate.dragModifier 0/0/0 ObjectTemplate.mass 0 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- rem ------------------------------------- ObjectTemplate.setHullHeight 0.5 ObjectTemplate.setFloatMaxLift 8 ObjectTemplate.setFloatMinLift 0 ObjectTemplate.create Wing fat_cow_VerticalBodyWing ObjectTemplate.modifiedByUser ljo ObjectTemplate.createdInEditor 1 ObjectTemplate.floaterMod 0 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- rem ------------------------------------- ObjectTemplate.setAutomaticReset 1 ObjectTemplate.setPositionOffset 0/0/0 ObjectTemplate.setWingLift 0.1 ObjectTemplate.setFlapLift 0 The problem I have is that either it sinks to the bottom, or it goes crazy trying to float to the top.
  7. Poisen Gas - Easy Have the smoke grenade have a supply object (take the code from the FIRE template because it damages, not heals). Set a time to live for the smoke grenade, so when it dies, so will the supply object. Super easy to do! can even be done server side too!!!
  8. bouncing and vibrating? Your floatermod is too high. Lower it. wait a second, do you mean when it's on the ground? If it bounces around when on the water than it's the floater mod. If its on the ground then your spring compression is too high.
  9. Aha! I googled everywhere looking for this stupid tool and it's been here the entire time. Do'h!
  10. That's how the debugger works. Click continue to go to the next error and the next and the next, etc
  11. We were FORCED to do that because it caused players to activate other jetpacks inside the jetpack causing them to CTD. So this was the only way to stop them from crashing. Plus this fixed 2 other issues we had with the jetpack.
  12. That explains why I crash and I didn't figure out why.
  13. You'll see in my next video of what I did. It fixed all our other problems as well opening us to have more stuff on the jetpack! w00t
×
×
  • Create New...