Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[help] Add BackPack invisible

Newbie Spellweaver
Joined
Aug 17, 2016
Messages
34
Reaction score
6
I tried already do as follows

<Backpack itemID="20176" category="12" Weight="0">
<!-- Model file="Data/ObjectsDepot/Characters/Gear_Backpack_8slots.sco" / -->
<Store name="Small Backpack" icon="$Data/Weapons/StoreIcons/Gear_Backpack_8slots.dds" desc="A small backpack allowing some storage for essential items and equipment." />
<Desc maxSlots="12" maxWeight="20" />
</Backpack>

the game functioned normally when I put drop he crashed and stopped working
Note: I already tried to change the address to a sco that did not exist and also the same thing happened

you know how I can do this?
 
Junior Spellweaver
Joined
Dec 23, 2014
Messages
128
Reaction score
26
I dont think this works like that... Id guess u have to make a new invisible model and rig it to the skeleton then add that as the model file.
 
Upvote 0
Newbie Spellweaver
Joined
Feb 7, 2015
Messages
86
Reaction score
9
create dummy = model name / only sco / no data = invisible model

[ObjectBegin]
Name= dummy
CentralPoint= 0.0 0.0 0.0
Verts= 1
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1
Faces= 1
3 0 1 2 Dummy 0.0 0.0 0.0 0.0 0.0 0.0
[ObjectEnd]

--/material/--

[MaterialBegin]
Name= Dummy
Flags= _unused_
SpecularPower= 0.00
Specular1Power= 0.00
ReflectionPower= 0.00
Glows= 0
DoubleSided= 0
Color24= 0 0 0
DetailScale= 0.00
DetailAmmount= 0.00
displace= 0
displ_val= 0.000
ForceTransparent= 0
AlphaTransparent= 0
Camouflage= 0
lowQSelfIllum= 0.00
lowQMetallness= 0.00
[MaterialEnd]
 
Upvote 0
☆Dying Dawn☆
Joined
Jan 30, 2012
Messages
971
Reaction score
727
a easy way is make a small pocket model inside the body mesh and skining with the pelvis or any spine bone in case you don't know hide the current backpack with the codes so the item will be hide into the AI until this die and drop the model in the floor instead a transparent model, That's my point of view
or use something like this
Code:
if(CurLoadout.BackpackID = !20176)
	{
		uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL);
	}
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Aug 17, 2016
Messages
34
Reaction score
6
vars.h
REG_VAR( d_disable_backpacks_draw , true, 0 );

playeranim.cpp
for(int i=0; i<=SLOT_Backpack; i++)
{
if(d_disable_backpacks_draw->GetBool() && i==SLOT_Backpack)
continue;


DrawSlot((ESlot)i, CharMat, dt, true, first_person, NULL);
}

I did like that was invisible, however I just wanted a small invisible but was all but when I dropava them on the ground could see them
 
Upvote 0
Newbie Spellweaver
Joined
Feb 7, 2015
Messages
86
Reaction score
9
AI_Player.cpp


Find:
Code:
if(NetworkLocal)
{
	if(backpack)
	uberEquip_->SetSlot(SLOT_Backpack, backpack->getMesh());
	else
	uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL);
}


change 20176 you backpack ID
Code:
if(NetworkLocal)
{
	if(backpack)
	{
​		if(CurLoadout.BackpackID == 20176)
		{
​		uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL);
		UpdateCharWeaponMeshes();
		}
		else
		{
​		uberEquip_->SetSlot(SLOT_Backpack, backpack->getMesh());
		UpdateCharWeaponMeshes();
​		}
	}
	else
	{
	uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL);
	}
}




next find (no backpack no weapon BackRight )
Code:
void obj_Player::UpdateCharWeaponMeshes()
{
	//r3d_assert(!m_Weapons[m_SelectedWeapon].Empty());


	bool isFirstPerson = g_camera_mode->GetInt()==2 && NetworkLocal;
	uberEquip_->SetSlot(SLOT_Weapon, m_Weapons[m_SelectedWeapon]);
	if(m_SelectedWeapon==0)
	{
		uberEquip_->SetSlot(SLOT_WeaponBackRight, (Weapon*)NULL);
	}
	else
	{		
		const BackpackConfig* backpack = g_pWeaponArmory->getBackpackConfig(CurLoadout.BackpackID);		
		if(NetworkLocal)
		{


			if(backpack)
			{
				if(m_Weapons[0])
				{
				uberEquip_->SetSlot(SLOT_WeaponBackRight, m_Weapons[0]);
				}
			}


change 20176 you backpack ID
Code:
	if(backpack)
	{


		if(CurLoadout.BackpackID != 20176)
		{
			if(m_Weapons[0])
			{
			uberEquip_->SetSlot(SLOT_WeaponBackRight, m_Weapons[0]);
			}
		}
	}
 
Upvote 0
Junior Spellweaver
Joined
Sep 29, 2008
Messages
110
Reaction score
57
itemsdb

Code:
<Backpack itemID="111111" category="12" Weight="0">
			<Model file="Data/ObjectsDepot/Characters/Gear_backpack_dev.sco" />
			<Store name="Invisible Backpack" icon="$Data/Weapons/StoreIcons/Gear_Backpack_GameSpot.dds" desc="This is an exclusive test backpack to test the ability to walk around without a backpack." />
			<Desc maxSlots="64" maxWeight="9999999" />
		</Backpack>
files
 
Upvote 0
Initiate Mage
Joined
Sep 10, 2021
Messages
1
Reaction score
0
So, did it work? I know this thread is old, but I'm just curious.
You know that a bag of high quality is essential not only in the game. I was used to playing games a lot before joining college, and many times I caught myself thinking that I would like to be able to put everything in a bag in real life, too. Like in the game. Now I devote the bulk of my time to college and studying things. But still, if possible, I try to relieve all my stress by gaming. I need to keep my laptop wherever I go, so I have an excellent backpack with a special compartment for digital devices. Got it here: . I use it for various purposes, and because of my bag, I don't have to worry about its safety.
 
Last edited:
Upvote 0
Back
Top