TIOcoop spacer TIOcoop spacer TIOcoop
Game Menu New

NovaHQ Top 50



Community Forums › Mods › General Mod Chat › Conversion Help
Conversion Help

Post new topic    Reply to topic    Printer Friendly Page     Forum Index ›  General Mod Chat

View previous topic :: View next topic  
Author Message
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Sun Feb 19, 2017 9:04 am
Post subject: Conversion Help

Hey guys im trying to get the Croc from BHD into JO
It already has been done in the BFM and AW2 mods but for some reason the model sits about a foot off the ground Sad

So i decided to start from scratch and do it myself
Extract the croc 3di from BHD, import into MilkShape, export as .obj. Open 3Dmax import .obj, adjust ground height of model and export as ASE, import into OED then export the .3di

I got the croc into JO sitting at the right height.
The croc turns to face you but thats all it does, doesn't move or make noise.

I extracted the croc .BAD files (10) and added to JO
I have edited the ammo.def to add croc info as well as the ITEM.def of course.

Anyone know what i have missed?
Back to top
View user's profile Visit poster's website ICQ Number
dfx2modR
2LT
2LT


Joined: Dec 04, 2016
Posts: 22

PostPosted: Sun Feb 19, 2017 11:15 am
Post subject: Re: Conversion Help

is the items.def file written correctly? for the croc
Back to top
View user's profile
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Sun Feb 19, 2017 11:27 am
Post subject: Re: Conversion Help

yeah i used the code from BHD and the code from Bear Force Mod which is the same used in the AW2 Mod

It seems it has most of the bit already in DFX2
It have the .BAD files and code in the sndprof.def file which has been edited out. So i deleted the // to make it active.
Back to top
View user's profile Visit poster's website ICQ Number
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Sun Feb 19, 2017 2:43 pm
Post subject: Re: Conversion Help

i missed the croc.adm animation files lol
ok that changed a few things, i had to redo the croc 3di at standard height.
The croc's now chase you as do as ment to and attack.

The issue now is no sounds and attacks dont hurt you.
Back to top
View user's profile Visit poster's website ICQ Number
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Tue Feb 21, 2017 10:09 am
Post subject: Re: Conversion Help

So far i have the croc working as in animation working, some sounds like die works but attack doesn't? and the ammo file for attack isn't working?

Anyone know what i have missed?


Croc.3di (Model)

Crocskin.tga (Texture)

Croc.pcx (Med Pic)

Croc.adm (Animation file)

Croc .bad (The .BAD files are already in DFX2)

Croc .wav (Sounds)
crocAtk.wav
crocAtk1.wav
crocAtk2.wav
crocAtk3.wav
crocDiea.wav
crocDie2.wav
crocDie3.wav

ITEM.def
Code::
begin "The Evil Croc :-)"
  id 107711
  sid croc
  type person
  graphic croc
  anim_def croc
  attrib: evil aidata nodismember NoCTool
  deathtime	120
  shadow   shadow4.tga   1.0  1.0  0.0  0.0
  hp 100
  radarsig 300
  score 10
  ai_function org1
  disk_function ORGANIC
  phrase_set 33
  move_function org1
  unit_type 9
  clipsize 100
  ammo_closeattack    AMMO_Croc
  ammo_easyrocket     AMMO_Croc
  ammo_advancedrocket AMMO_Croc
  ammo_marker3        AMMO_Croc
  launchups_closeattack		mflash01
  launchups_rocket		mflash01
  launchups_marker3		mflash01
  sound_profile DFX_Kroki
end

Game.lwf
Code::
  sound "CROCATK3"	220	crocAtk3.wav
  sound "CROCATK2"	220	crocAtk2.wav
  sound "CROCATK1"	220	crocAtk1.wav
  sound "CROCATK"	220	crocAtk.wav
  sound "CROCDIE2"	255	crocDie2.wav
  sound "CROCDIE0"	255	crocDiea.wav

begin multi
  varname "CROCODILE_ATK"
  playlist 1075
  target 10000
end

begin multi
  varname "FS_CROCD_L"
  playlist 1272
  target 10000
end

begin multi
  varname "FS_CROCD_R"
  playlist 1273
  target 10000
end

begin multi
  varname "DEATH_CROCO"
  playlist 1274
  target 10000
end

begin playlist
  listid 1075
  distance 100 
  value 15
  sndparm	"CROCATK3"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK2"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK1"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK"	64224 0 9830 220 255 0 0
end

begin playlist
  listid 1274
  distance 150 
  value 15
  sndparm	"CROCDIE2"	64224 0 7864 200 255 0 0
  sndparm	"CROCDIE0"	65535 0 0 200 255 0 0
end

sndprof.def
Code::
begin "DFX_Kroki"		// The Evil Croc :-)
	sounddeath		DEATH_CROCO
	SSNightDead		DEATH_CROCO
	SSFallDead		FALLDEAD2
	SSFallAlive		JUMPLAND_DIRT
	SSLFootGND		FS_CROCD_L
	SSRFootGND		FS_CROCD_R
	SSLFootSnow		FSP_SNOW_L
	SSRFootSnow		FSP_SNOW_R
	SSLFootOBJ		FS_CROCD_L
	SSRFootOBJ		FS_CROCD_R
	SSFootWater		FS_WATER
	SSAudio1		FS_CROCD_R
	SSAudio2		FS_CROCD_R
	SSAudio3		FSP_OBJ_L
	SSAudio4		FS_SWIM
	SSAudio5		GF_AK_RL
	SSAudio6 
  	FreeFall 		FREEFALL
end

Ammo.def
Code::
ammo AMMO_Croc
	max_age				1     		
	velocity			1		
	min_stable_velocity 		0
	error				0
	tumble_error			0
	drag				1
	weight_in_grains		0
	min_damage			300
	max_damage			300
	penetration_impact		0
	penetration_kz			0

    	
	flag 				instantkillzone
	
	kztype 				rounds_kz_Knife
	kz_damage 			300
	kz_minradius 			0.1
	kz_maxradius 			1.5
	kz_pieslice	 		80		
	kz_sound			Crocbite

	effects_table
		move       	none				none			0
		obj        	none				none			15
		dirt       	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		grass      	Effect_AmHitGrass		IMP_KNIFE_DIRT		15
		snow       	Effect_AmHitSnow		IMP_KNIFE_DIRT		1
		cement     	Effect_AmHitStone		IMP_KNIFE_CEMENT	15
		packeddirt 	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		water      	Effect_AmHitWater3		imp_20mm_water		5
		railroad   	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		mud        	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		ice        	Effect_AmHitSnow		IMP_KNIFE_DIRT		15
		sand       	Effect_AmHitSand		IMP_KNIFE_DIRT		15
		quicksand  	Effect_AmHitSand		IMP_KNIFE_DIRT		15
		stone      	Effect_AmHitStone		IMP_KNIFE_CEMENT	15
		wood       	Effect_AmHitWood		IMP_KNIFE_WOOD		5
		metal      	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		glass      	Effect_AmHitGlass		IMP_KNIFE_GLASS		5
		cloth      	Effect_AmHitCloth		IMP_KNIFE_CLOTH		3
		foliage    	Effect_AmHitFoliage		imp_20mm_foliage	3
		hmetal     	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		flesh      	Effect_AmHitBody		IMP_KNIFE_FLESH		3
		player     	Effect_GatorBlood		IMP_KNIFE_FLESH		10
		zip		none				none			10
	end
end
Back to top
View user's profile Visit poster's website ICQ Number
dfx2modR
2LT
2LT


Joined: Dec 04, 2016
Posts: 22

PostPosted: Wed Feb 22, 2017 12:24 am
Post subject: Re: Conversion Help

are you setting the croc up correct in the map editor, red team etc?
Back to top
View user's profile
dfx2modR
2LT
2LT


Joined: Dec 04, 2016
Posts: 22

PostPosted: Wed Feb 22, 2017 12:25 am
Post subject: Re: Conversion Help

bro there's no begin on the ammo.def and 2 end's?
Back to top
View user's profile
dfx2modR
2LT
2LT


Joined: Dec 04, 2016
Posts: 22

PostPosted: Wed Feb 22, 2017 12:29 am
Post subject: Re: Conversion Help

~BLÃÐE~ wrote:
So far i have the croc working as in animation working, some sounds like die works but attack doesn't? and the ammo file for attack isn't working?

Anyone know what i have missed?


Croc.3di (Model)

Crocskin.tga (Texture)

Croc.pcx (Med Pic)

Croc.adm (Animation file)

Croc .bad (The .BAD files are already in DFX2)

Croc .wav (Sounds)
crocAtk.wav
crocAtk1.wav
crocAtk2.wav
crocAtk3.wav
crocDiea.wav
crocDie2.wav
crocDie3.wav

ITEM.def
Code::
begin "The Evil Croc :-)"
  id 107711
  sid croc
  type person
  graphic croc
  anim_def croc
  attrib: evil aidata nodismember NoCTool
  deathtime	120
  shadow   shadow4.tga   1.0  1.0  0.0  0.0
  hp 100
  radarsig 300
  score 10
  ai_function org1
  disk_function ORGANIC
  phrase_set 33
  move_function org1
  unit_type 9
  clipsize 100
  ammo_closeattack    AMMO_Croc
  ammo_easyrocket     AMMO_Croc
  ammo_advancedrocket AMMO_Croc
  ammo_marker3        AMMO_Croc
  launchups_closeattack		mflash01
  launchups_rocket		mflash01
  launchups_marker3		mflash01
  sound_profile DFX_Kroki
end

Game.lwf
Code::
  sound "CROCATK3"	220	crocAtk3.wav
  sound "CROCATK2"	220	crocAtk2.wav
  sound "CROCATK1"	220	crocAtk1.wav
  sound "CROCATK"	220	crocAtk.wav
  sound "CROCDIE2"	255	crocDie2.wav
  sound "CROCDIE0"	255	crocDiea.wav

begin multi
  varname "CROCODILE_ATK"
  playlist 1075
  target 10000
end

begin multi
  varname "FS_CROCD_L"
  playlist 1272
  target 10000
end

begin multi
  varname "FS_CROCD_R"
  playlist 1273
  target 10000
end

begin multi
  varname "DEATH_CROCO"
  playlist 1274
  target 10000
end

begin playlist
  listid 1075
  distance 100 
  value 15
  sndparm	"CROCATK3"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK2"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK1"	64224 0 9830 220 255 0 0
  sndparm	"CROCATK"	64224 0 9830 220 255 0 0
end

begin playlist
  listid 1274
  distance 150 
  value 15
  sndparm	"CROCDIE2"	64224 0 7864 200 255 0 0
  sndparm	"CROCDIE0"	65535 0 0 200 255 0 0
end

sndprof.def
Code::
begin "DFX_Kroki"		// The Evil Croc :-)
	sounddeath		DEATH_CROCO
	SSNightDead		DEATH_CROCO
	SSFallDead		FALLDEAD2
	SSFallAlive		JUMPLAND_DIRT
	SSLFootGND		FS_CROCD_L
	SSRFootGND		FS_CROCD_R
	SSLFootSnow		FSP_SNOW_L
	SSRFootSnow		FSP_SNOW_R
	SSLFootOBJ		FS_CROCD_L
	SSRFootOBJ		FS_CROCD_R
	SSFootWater		FS_WATER
	SSAudio1		FS_CROCD_R
	SSAudio2		FS_CROCD_R
	SSAudio3		FSP_OBJ_L
	SSAudio4		FS_SWIM
	SSAudio5		GF_AK_RL
	SSAudio6 
  	FreeFall 		FREEFALL
end

Ammo.def
Code::
begin
       "AMMO_Croc"
	max_age				1     		
	velocity			1		
	min_stable_velocity 		0
	error				0
	tumble_error			0
	drag				1
	weight_in_grains		0
	min_damage			300
	max_damage			300
	penetration_impact		0
	penetration_kz			0

    	
	flag 				instantkillzone
	
	kztype 				rounds_kz_Knife
	kz_damage 			300
	kz_minradius 			0.1
	kz_maxradius 			1.5
	kz_pieslice	 		80		
	kz_sound			Crocbite

	effects_table
		move       	none				none			0
		obj        	none				none			15
		dirt       	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		grass      	Effect_AmHitGrass		IMP_KNIFE_DIRT		15
		snow       	Effect_AmHitSnow		IMP_KNIFE_DIRT		1
		cement     	Effect_AmHitStone		IMP_KNIFE_CEMENT	15
		packeddirt 	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		water      	Effect_AmHitWater3		imp_20mm_water		5
		railroad   	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		mud        	Effect_AmHitDirt		IMP_KNIFE_DIRT		15
		ice        	Effect_AmHitSnow		IMP_KNIFE_DIRT		15
		sand       	Effect_AmHitSand		IMP_KNIFE_DIRT		15
		quicksand  	Effect_AmHitSand		IMP_KNIFE_DIRT		15
		stone      	Effect_AmHitStone		IMP_KNIFE_CEMENT	15
		wood       	Effect_AmHitWood		IMP_KNIFE_WOOD		5
		metal      	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		glass      	Effect_AmHitGlass		IMP_KNIFE_GLASS		5
		cloth      	Effect_AmHitCloth		IMP_KNIFE_CLOTH		3
		foliage    	Effect_AmHitFoliage		imp_20mm_foliage	3
		hmetal     	Effect_AmHitMetal		IMP_KNIFE_METAL		15
		flesh      	Effect_AmHitBody		IMP_KNIFE_FLESH		3
		player     	Effect_GatorBlood		IMP_KNIFE_FLESH		10
		zip		none				none			10

end

i edited the ammo.def, see if this helps.
Back to top
View user's profile
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Wed Feb 22, 2017 10:10 am
Post subject: Re: Conversion Help

dfx2modR wrote:
bro there's no begin on the ammo.def and 2 end's?

Yep code is correct for ammo.def, it has no begin and 2 end.

You can hear the footsteps coming at you, it attacks you as it should with the animation file but it doesn't kill you when it attacks you (ammo.def) and it doesn't make sound when attacking you (sndprof.def/game.LWF)

I will have another look when i get a chance, missing a line or need to edit a line somewhere.
Back to top
View user's profile Visit poster's website ICQ Number
~BLÃÐE~
Site Admin
Site Admin


Joined: Jun 15, 2008
Posts: 372
Location: Gold Coast - AU
PostPosted: Fri Mar 03, 2017 6:22 am
Post subject: Re: Conversion Help

I knew it would be something simple to fix this.

I put the code above the Null line, once i moved it below it is all working properly.

Now lets see if i can manipulate the croc.adm with the new .bad files in DFX2, it might give a different attack.
Back to top
View user's profile Visit poster's website ICQ Number
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ›  General Mod Chat
Page 1 of 1
All times are GMT + 10 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Delta Force Xtreme 2
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster
copyright@nova-outpost.com
Interactive software released under GNU GPL, Code Credits, Privacy Policy