Транспорт: Настройка модели

Материал из Oxygen Engine
Перейти к: навигация, поиск

Конфиг из 1.6.02

[disable]
linear_factor		= 0.5
angular_factor		= 0.5

;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------

[car_definition]
camera_pos				= -0.35, 1.3, 0.2

driving_wheels			= front_left_wheel,front_right_wheel,back_left_wheel,back_right_wheel   ; ??????? ??????
steering_wheels			= front_left_wheel,front_right_wheel                                    ; ??????? ??????
breaking_wheels			= front_left_wheel,front_right_wheel,back_left_wheel,back_right_wheel   ; ?????????? ??????
doors					= left_door,right_door                                                  ; ?????
steer					= stearing_wheel                                                        ; ????
driver_place			= seat_left                                                             ; ????? ????????
exhausts				= exhausts                                                              ; ????????? ?????
;exhaust_particles		= vehiclefx\exhaust_1

;-------------------------------------------------------------------------------
;------ Factory parameters of Engine -------------------------------------------

fuel_tank         		= 80         	; L
fuel_consumption  		= 1		       	; L / (100k R); liters per 100 000 rotations
engine_power      		= 350	        	; horse_power (kW=hp*0.808) max power
max_power_rpm     		= 6200        	; (nominal rpm ) on this rpm value engine power reaches maximum
max_torque_rpm    		= 4800.       	; on this rpm engine torque reaches maximum

power_increment_factor  = 0.5   ;
power_decrement_factor	= 0.1
rpm_increment_factor    = 0.008 ;
rpm_decrement_factor	= 0.1

m_power_neutral_factor	= 0.35

; additional engine parameters

max_engine_rpm    		= 8000			; rpm (5000) rpm will never be more
idling_engine_rpm		= 1000       	; rpm (750) min rpm - starts from this rpm value

;-------------------------------------------------------------------------------
;------ Adjustment a wheel -----------------------------------------------------

reference_radius  		= 0.28			; ?aaeon eieana, eniieucoaiue i?e i?in??oa aaeaaoaey
axle_friction     		= 0.01        	; Ineaaeaiea nei?inoe a iaao?aeuiie iiceoee. (N*m)
steering_speed    		= 2.5         	; A?aiy iiai?ioa ?oeaaiai eieana, a iaeneioi. rps (1)
steering_torque   		= 90000.    	; Neea aea?ioneeeoaey ?oey. (N*m)
break_torque      		= 2.0        	; Neea oi?iiciuo eieiaie. (N*m)
break_time        		= 0.9         	; a?aiy ia?anoaiey neeu oi?ii?aiey ai iaeneioia, i?e iiaoi?ia?eaaiee (no?aeea iacaa)
hand_break_torque 		= 1.0        	; neea oi?ii?aiey i?iaaeii (ii oiie?aie? = break_torque)

;-------------------------------------------------------------------------------
;------ Gearbox ----------------------------------------------------------------

main_gear_ratio    		= 2.63        	; ???????????? ?????????
auto_transmission  		= off            ; ?????????????? ??????? (on/off)

auto_transmission_rpm  = 2500,4250

[transmission_gear_ratio]
										; shift down/ shift up. (rpm, ??????????? ??? ????????????)
R                  		= 3.73, 1550,2250	
N1                 		= 3.71, 1200,2500
N2                 		= 2.39, 2500,3250
N3                 		= 1.26, 4800,5250
N4                 		= 0.99, 4900,6050

;-------------------------------------------------------------------------------
;------ Rest Adjustment --------------------------------------------------------

[lights]
headlights         		= f1,f2

[f1]
bone               		= left_light
color              		= 1.0,1.0,1.0,1.0
range              		= 25
cone_angle         		= 60
spot_texture       		= lights\lights_blamplight
glow_texture       		= glow\glow_Yellow
glow_radius        		= 1.5

[f2]
bone               		= right_light
color              		= 1.0,1.0,1.0,1.0
range              		= 25
cone_angle         		= 60
spot_texture       		= lights\lights_blamplight
glow_texture       		= glow\glow_Yellow
glow_radius        		= 1.5

[car_sound]
snd_volume      = 1.0
snd_name      = car\car1 ;car\car_litlle_idle
transmission_switch = car\car_gearchange
explosion_sound     = weapons\heli_explosion
relative_pos        = 0.,0.5,1.5.

;-------------------------------------------------------------------------------
;------ animations params ------------------------------------------------------

[doors]
open_torque_factor	= 3.		;????????? ??????? ??? ??? ?????????? ????? (default = 2)

[animations]
driver_animation_type	= 0		;??? ???????? ?????? ??? ?????? ??????.

;-------------------------------------------------------------------------------
;------ damage params ----------------------------------------------------------

[damage_particles]

explosion_particles	= explosions\expl_car
car_damage_particles1	= explosions\expl_car_smoke_small
car_damage_particles2	= explosions\expl_car_smoke_big
wheels_damage_particles1	= vehiclefx\exhaust_1
wheels_damage_particles2	= vehiclefx\exhaust_1

particle_bones1		= root
particle_bones2		= kabina

;-------------------------------------------------------------------------------
;------ particle bones ---------------------------------------------------------

[particle_bones]
root			= 0,-0.5,1
kabina		= 0,0,0

;-------------------------------------------------------------------------------
;------ damage items -----------------------------------------------------------

[damage_items]
back_left_wheel   		= 5000
back_right_wheel  		= 5000
front_left_wheel  		= 5000
front_right_wheel 		= 5000
left_door         		= 2000
right_door        		= 2000

;-------------------------------------------------------------------------------
;------ collisiondamage --------------------------------------------------------

[collision_damage]
root					= 0.0001
kabina					= 0.0001
left_door				= 0.0001
right_door				= 0.0001
back_left_wheel			= 0.00001
back_right_wheel		= 0.00001
front_left_wheel		= 0.00001
front_right_wheel		= 0.00001

;-------------------------------------------------------------------------------
;------ damage bones -----------------------------------------------------------

[damage_bones]          ;?????????? ?????? ? ??????, ?? ??? ????????
;bone_name     			= <hit_scale>,<-1>,<wound_scale>
;<hit_scale> 			- ?????. ????????? ???? (?????????? ????????)
;<wound_scale> 			- ?????. ????????? ???????? ???????? ???? - ??????????????

default       			= 1, -1, 0.1

[immunities]
burn_immunity         	= 0.0       ;???????????? ??????????
strike_immunity       	= 0.0
shock_immunity        	= 0.0
wound_immunity        	= 0.0
radiation_immunity    	= 0.0
telepatic_immunity    	= 0.0
chemical_burn_immunity 	= 0.0
explosion_immunity    	= 0.0
fire_wound_immunity   	= 0.0


;-------------------------------------------------------------------------------
;----------------explosion params-----------------------------------------------

[explosion]
frag_hit_critical			= 0



blast					= 1
blast_r					= 15
blast_impulse			= 350
frags		        	= 15
frags_r					= 30
frag_hit				= 0.5
frag_hit_impulse		= 350
hit_type_blast			= explosion
hit_type_frag			= fire_wound
up_throw_factor			= 0.25
wm_size             	= 0.1
explode_particles		= explosions\expl_car
light_color				= 0.6,0.5,0.3
light_range				= 15.0
light_time 				= 0.5

;?????? ?? ????????
fragment_speed				= 76
fragment_tracer_max_length	= 3
explode_duration    		= 50			;???????????????? ?????? (?)

;?????
snd_explode 			= weapons\heli_explosion
;wallmarks
wallmark_section		= explosion_marks

[explode_effector]
effect_sect_name= effector_explode_hit

;-------------------------------------------------------------------------------
;------ Others params ----------------------------------------------------------

[air_resistance]
linear_factor           = 500.f		;
angular_factor          = 500.f		;

[wheels_params]
damping_factor          = 15		    ;
spring_factor           = 1			;
friction_factor         = 1.0		;

[front_left_wheel]
break_torque			= 0.75		; Сила тормозных колодок. (N*m
hand_break_torque		= 0.95		; сила торможения пробелом (по умолчанию = break_torque)
damping_factor          = 15		    ;
spring_factor           = 1			;
friction_factor         = 3.0		;

[front_right_wheel]
break_torque			= 0.75		; Сила тормозных колодок. (N*m
hand_break_torque		= 0.95		; сила торможения пробелом (по умолчанию = break_torque)
damping_factor          = 15		    ;
spring_factor           = 1			;
friction_factor         = 3.0		;

[back_left_wheel]
break_torque			= 0.95		; Сила тормозных колодок. (N*m
hand_break_torque		= 0.5		; сила торможения пробелом (по умолчанию = break_torque)
damping_factor          = 15		    ;
spring_factor           = 1			;
friction_factor         = 40.8		;

[back_right_wheel]
break_torque			= 0.95		; Сила тормозных колодок. (N*m
hand_break_torque		= 0.5		; сила торможения пробелом (по умолчанию = break_torque)
damping_factor          = 15		    ;
spring_factor           = 1			;
friction_factor         = 40.8		;

[collide]
not_collide_parts		= 1

;-------------------------------------------------------------------------------
;------ destroyed part ---------------------------------------------------------

[destroyed]
physics\vehicles\Zaz\part\veh_zaz_u_01_part1
physics\vehicles\Zaz\part\veh_zaz_u_01_part2
physics\vehicles\Zaz\part\veh_zaz_u_01_part3
physics\vehicles\Zaz\part\veh_zaz_u_01_part4
physics\vehicles\Zaz\part\veh_zaz_u_01_part5
physics\vehicles\Zaz\part\veh_zaz_u_01_part6

[autoremove_parts]
time					 = 30
;-------------------------------------------------------------------------------
;--- part impulse_transition ---------------------------------------------------

[impulse_transition_to_parts]
random_min               = 10.0    ; ???????? ???????? ????????????? ???????? ??????????????? ????? ?????? ???????
random_hit_imp           = 1.0     ; ???????? ???????? ????????????? ???????? ??????????????? ???????????? ????
;ref_bone                 =         ; ????? ?? ?? ??????? ???????????? ???????? ??? ?????? ? ??????? ????? ?? ??????, ?? ????????? ???
imp_transition_factor    = 1.0     ; ?????? ? ??????? ?????????????? ??? ?? ????????? ??????? ?? ???? ?????? 
lv_transition_factor     = 0.5     ; ??????????? ???????? ???????? ????????
av_transition_factor     = 0.5     ; ??????????? ???????? ??????? ????????

;-------------------------------------------------------------------------------
;------ End params -------------------------------------------------------------

Что нового

  • С учётом добавления вида от третьего лица, для транспорта пришлось внести ряд изменений
    • camera_pos_2nd и camera_pos_3rd в [car_definition]
camera_pos_2nd = 80.0 , 90.0, 10.0 ; Позиция в режиме 2nd
camera_pos_3rd = 80.0 , 90.0, 10.0 ; Позиция в режиме 3rd
    • car_first_eye_cam, car_look_cam, car_free_cam в [car_definition]

[sample_car_first_eye_cam]
lim_pitch                = -1.5, 1.5
lim_yaw                  = 0, 0
rot_speed                = 3.14, 3.14, 0

[sample_car_look_cam]
;----------------
lim_pitch                = -1.5, 1.5
lim_yaw                  = 0, 0
lim_zoom                 = 0.4, 10
rot_speed                = 3.14, 1.0, 10
first_person_zoom		 = false

[sample_car_free_cam]
lim_pitch                = -0.7, 1
lim_yaw                  = 0, 0
lim_zoom                 = 1, 5
rot_speed                = 3.14, 6.28, 10
first_person_zoom		 = true

[car_definition]
...
car_free_cam      = sample_car_free_cam 
car_look_cam      = sample_car_look_cam 
car_first_eye_cam = sample_car_first_eye_cam 
...
  • Sounds (Звук) - [car_sound]
engine_sound_start_dellay = path/name