Skip to content

Commit

Permalink
added inferno
Browse files Browse the repository at this point in the history
  • Loading branch information
DomDom committed Jul 9, 2015
1 parent ad0a287 commit dfaa213
Show file tree
Hide file tree
Showing 11 changed files with 860 additions and 3 deletions.
50 changes: 50 additions & 0 deletions mod/inferno/spark_hit.pfx
@@ -0,0 +1,50 @@
{
"emitters":[
{
"spec": {
"shape": "pointlight",
"red": 0.01,
"green": 0.2,
"blue": 1,
"alpha": [[0.5, 0.4], [1, 0]]
},
"sizeX": 15,
"lifetime": 0.4
},
{
"spec": {
"shader": "particle_transparent",
"red": 0.05,
"green": 5,
"blue": 100,
"alpha": [[0.5, 1], [1, 0]],
"cameraPush": 2,
"baseTexture": "/pa/effects/textures/particles/softdot.papa"
},
"sizeX": 3,
"lifetime": 0.4,
"emissionBursts": 1,
"bLoop": false
},
{
"spec": {
"facing": "velocity",
"shader": "particle_add",
"red": 0.05,
"green": 5.0,
"blue": 100,
"baseTexture": "/pa/effects/textures/particles/flat.papa"
},
"sizeX": 0.1,
"sizeY": 0.5,
"offsetRangeX": 1,
"offsetRangeY": 1,
"offsetRangeZ": 1,
"useRadialVelocityDir": true,
"velocity": 15,
"emissionRate": 60,
"emitterLifetime": 0.3,
"lifetime": 0.2
}
]
}
84 changes: 84 additions & 0 deletions mod/inferno/spark_muzzle_flash.pfx
@@ -0,0 +1,84 @@
{
"emitters":[
{
"spec": {
"shader": "particle_add_soft",
"red": 0.0,
"green": 0.25,
"blue": 0.7,
"cameraPush": 0.5,
"baseTexture": "/pa/effects/textures/particles/softdot.papa",
"dataChannelFormat": "PositionAndColor"
},
"offsetY": -0.5,
"sizeX": 6,
"emissionBursts": 1,
"lifetime": 0.4,
"emitterLifetime": 0.1,
"bLoop": false,
"endDistance": 1400,
"sort": "NoSort"
},
{
"spec": {
"shader": "particle_transparent",
"facing": "AxialY",
"red": [[0.3, 0.5], [1, 0.0]],
"green": [[0.3, 2], [1, 0.6]],
"blue": [[0.3, 5], [1, 1.0]],
"alpha": [[0, 1], [1, 0]],
"baseTexture": "/pa/effects/textures/particles/muzzle_flash_a.papa",
"rampTexture": "/pa/effects/textures/particles/uncompressed/no_ramp.papa",
"dataChannelFormat": "PositionColorAndAlignVector"
},
"rotationRange": 1,
"rotationRangeRate": 1,
"sizeX": 2.5,
"sizeRangeX": 0.2,
"emissionBursts": 1,
"offsetY": -1.5,
"lifetime": 0.4,
"emitterLifetime": 0.25,
"bLoop": false,
"endDistance": 1400
},
{
"spec": {
"shader": "particle_transparent",
"facing": "EmitterY",
"red": [[0.3, 0.5], [1, 0.0]],
"green": [[0.3, 2], [1, 0.6]],
"blue": [[0.3, 5], [1, 1.0]],
"alpha": [[0, 1], [1, 0]],
"baseTexture": "/pa/effects/textures/particles/muzzle_flash_b.papa",
"rampTexture": "/pa/effects/textures/particles/uncompressed/no_ramp.papa",
"dataChannelFormat": "PositionAndColor"
},
"sizeX": 2.5,
"sizeRangeX": 0.2,
"emissionBursts": 1,
"offsetY": -0.4,
"rotationRange": 7,
"lifetime": 0.4,
"emitterLifetime": 0.25,
"bLoop": false,
"endDistance": 1400
},
{
"spec": {
"shape": "pointlight",
"red": 0.2,
"green": 0.3,
"blue": 1.0,
"alpha": [[0.6, 0.8], [1, 0]]
},
"offsetY": -0.5,
"sizeX": 20,
"emissionBursts": 1,
"lifetime": 0.15,
"emitterLifetime": 0.1,
"bLoop": false,
"endDistance": 850
}
]
}
116 changes: 116 additions & 0 deletions mod/inferno/spark_trail.pfx
@@ -0,0 +1,116 @@
{
"emitters":[
{
"spec": {
"shader": "particle_transparent",
"shape": "beam",
"alpha": [[0.5, 1], [0.55, 0.25], [1, 0]],
"sizeX": [[0, 0.25], [0.2, 3.5], [0.5, 1]],
"baseTexture": "/pa/effects/textures/particles/flat.papa"
},
"offsetRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRange": 1,
"red": 0.05,
"green": 5,
"blue": 100,
"sizeX": 0.1,
"emissionBursts": 1,
"beamSegmentLength": 1.8,
"maxParticles": 10,
"lifetime": [[0, 0], [1, 0.3]],
"emitterLifetime": 0.5,
"bLoop": false,
"endDistance": 1000,
"delay": 0.0
},
{
"spec": {
"shader": "particle_transparent",
"shape": "beam",
"alpha": [[0.5, 1], [0.55, 0.25], [1, 0]],
"sizeX": [[0, 0.25], [0.2, 3.5], [0.5, 1]],
"baseTexture": "/pa/effects/textures/particles/flat.papa"
},
"offsetRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRange": 1,
"red": 0.05,
"green": 5,
"blue": 100,
"sizeX": 0.1,
"emissionBursts": 1,
"beamSegmentLength": 1.8,
"maxParticles": 10,
"lifetime": [[0, 0], [1, 0.3]],
"emitterLifetime": 0.5,
"bLoop": false,
"endDistance": 1000,
"delay": 0.075
},
{
"spec": {
"shader": "particle_transparent",
"shape": "beam",
"alpha": [[0.5, 1], [0.55, 0.25], [1, 0]],
"sizeX": [[0, 0.25], [0.2, 3.5], [0.5, 1]],
"baseTexture": "/pa/effects/textures/particles/flat.papa"
},
"offsetRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRange": 1,
"red": 0.05,
"green": 5,
"blue": 100,
"sizeX": 0.1,
"emissionBursts": 1,
"beamSegmentLength": 1.8,
"maxParticles": 10,
"lifetime": [[0, 0], [1, 0.3]],
"emitterLifetime": 0.5,
"bLoop": false,
"endDistance": 1000,
"delay": 0.15
},
{
"spec": {
"shader": "particle_transparent",
"shape": "beam",
"alpha": [[0.5, 1], [0.55, 0.25], [1, 0]],
"sizeX": [[0, 0.25], [0.2, 3.5], [0.5, 1]],
"baseTexture": "/pa/effects/textures/particles/flat.papa"
},
"offsetRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"offsetRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRangeX": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeZ": [[0, 0], [0.01, 1], [0.99, 1], [1, 0]],
"velocityRangeY": [[0, 0], [0.01, 0.1], [0.99, 0.1], [1, 0]],
"velocityRange": 1,
"red": 0.05,
"green": 5,
"blue": 100,
"sizeX": 0.1,
"emissionBursts": 1,
"beamSegmentLength": 1.8,
"maxParticles": 10,
"lifetime": [[0, 0], [1, 0.3]],
"emitterLifetime": 0.5,
"bLoop": false,
"endDistance": 1000,
"delay": 0.22499999999999998
}
]
}
4 changes: 2 additions & 2 deletions modinfo.json
Expand Up @@ -6,8 +6,8 @@
"author": "dom314",
"forum": "https://forums.uberent.com/threads/wip-client-more-pew-pew-requesting-opinions.69025/",
"icon": "http://i.imgur.com/PQOpc3u.gif",
"version": "0.9.1",
"version": "0.9.6",
"priority": 100,
"build": "83796",
"date": "2015/07/08"
"date": "2015/07/09"
}
112 changes: 112 additions & 0 deletions pa/units/land/tank_armor/tank_armor.json
@@ -0,0 +1,112 @@
{
"base_spec": "/pa/units/land/base_vehicle/base_vehicle.json",
"display_name": "!LOC(units:inferno.message):Inferno",
"description": "!LOC(units:flame_tank_short_ranged_heavy_armored_vehicle.message):Flame tank- Short ranged, heavy armored vehicle.",
"max_health": 1000,
"build_metal_cost": 225,
"attachable": {
"offsets": {
"root": [
0,
0,
0
],
"head": [
0,
0,
4.3
]
}
},
"unit_types": [
"UNITTYPE_Tank",
"UNITTYPE_Heavy",
"UNITTYPE_Mobile",
"UNITTYPE_Offense",
"UNITTYPE_Land",
"UNITTYPE_Basic",
"UNITTYPE_FactoryBuild"
],
"transportable": {
"size": 1
},
"guard_layer": "WL_LandHorizontal",
"navigation": {
"type": "land-small",
"acceleration": 100,
"brake": 100,
"move_speed": 10,
"turn_speed": 180,
"group_preference": "front"
},
"physics": {
"radius": 4.5,
"push_class": 80
},
"recon": {
"observer": {
"items": [
{
"layer": "surface_and_air",
"channel": "sight",
"shape": "capsule",
"radius": 100
},
{
"layer": "underwater",
"channel": "sight",
"shape": "capsule",
"radius": 100
}
]
}
},
"model": {
"filename": "/pa/units/land/tank_armor/tank_armor.papa",
"animtree": "/pa/anim/anim_trees/tank_armor_anim_tree.json",
"arrows": 5
},
"tools": [
{
"spec_id": "/pa/units/land/tank_armor/tank_armor_tool_weapon.json",
"aim_bone": "bone_turret",
"muzzle_bone": "socket_muzzle"
}
],
"events": {
"build_complete": {
"audio_cue": "/SE/Build_Complete/veh"
},
"fired": {
"audio_cue": "/SE/Weapons/veh/tank_flame",
"effect_spec": "/mod/inferno/spark_muzzle_flash.pfx socket_muzzle"
},
"died": {
"audio_cue": "/SE/Death/Veh",
"effect_scale": 1.4
}
},
"audio": {
"loops": {
"move": {
"cue": "/SE/Movement/veh/tank_inferno_loop",
"flag": "vel_changed",
"should_start_func": "is_moving",
"should_stop_func": "is_not_moving"
}
},
"selection_response": {
"cue": "/SE/Selection/veh/tank_inferno"
}
},
"scrolling_uv": {
"scroll_rate": 0.71,
"uv_split": 0.881
},
"TEMP_texelinfo": 8.06901,
"mesh_bounds": [
5.5,
6,
4.3
]
}
14 changes: 14 additions & 0 deletions pa/units/land/tank_armor/tank_armor_ammo.json
@@ -0,0 +1,14 @@
{
"ammo_type": "AMMO_Beam",
"damage": 100,
"splash_damage": 0,
"splash_radius": 0,
"splash_damages_allies": false,
"recon": {
"observable": {
"ignore_radar": true
}
},
"fx_beam_spec": "/mod/inferno/spark_trail.pfx",
"fx_collision_spec": "/mod/inferno/spark_hit.pfx"
}

0 comments on commit dfaa213

Please sign in to comment.