Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » A Small Compilation of New Features
Re: A Small Compilation of New Features[message #313748] Mon, 31 December 2012 19:12 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Hi, I stumbled upon a bit of your code...
When using the USE_ALT_WEAPON_HOLD as bScopeMode, the icon displayed on the gun is the 'dirt' icon, which seems pretty odd. Perhaps you forgot to use the correct .STI?
Also, the scope mode is not reset when changing position to 'not standing', so one still gets any boni/penalties from that... however, one cannot set that mode in other positions then Which means you lose the USE_ALT_WEAPON_HOLD-mode if you just cycle through your scope modes. So I guess some sort of fix would be good.

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #313819] Thu, 03 January 2013 06:42 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Cheers. Brillant work, Sandro. You're an amazing asset, really have to say that. Alright, question:

Ja2_Options.ini
; Aiming levels of the gun are reduced percentually by this number on alternative weapon holding. So 50 here means only half aiming
; levels will be available when using alternative holding (keep in mind that is a positive thing in NCTH).

AIMING_LEVELS_REDUCTION_ON_ALTWEAPHOLD = 50

1) To clarify this, does that mean the default value of 50 is not suitable for NCTH because it allows you to reach maximum aim with less APs than usual?

2) Does 0 mean no reduction?

3) I want to make sure firing from the hip is less accurate than shoulder firing a gun. Do I have to inverse the value in NCTH? Will I have to set it to 150 or -50?

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #313828] Thu, 03 January 2013 12:03 Go to previous messageGo to next message
Strohmann is currently offline Strohmann

 
Messages:287
Registered:August 2011
Location: Division Thought Crimes
Why should it take longer to aim a weapon from a hip? The reminder in the brackets is for users of OCTH who would find the mechanic weird if they aren't familiar with the changes in NCTH.

Modify CTH_PENALTY_FROM_ALTWEAPHOLD and AIMING_PENALY_FROM_ALTWEAPHOLD instead if you find the penalties too mild.

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #313836] Thu, 03 January 2013 18:09 Go to previous messageGo to next message
Sandro is currently offline Sandro

 
Messages:420
Registered:November 2008
Location: Mars
Flugente:
I am pretty sure I've used the correct STI. I believe the dirt system was implemented after my features, so it is possible someone else used older STI and overwrote mine. Nevertheless, you may look into the code of dirt system and alt weapon holding system to see whether they adress the same pic number in the STI. If so, it needs to be changed first, then re-add the pic of alternative weapon holding.
Don't expect much initiative from me though. I am on loooooong vacation.

LootFragg:
1) No, it is suitable for both OCTH and NCTH, even that it is a penalty in one and bonus in the other. In NCTH it makes more sense - you aim faster, but can't reach an accuracy anywhere near like when you fire from shoulder. In OCTH it doesn't matter much, since you probably don't want to spend too much APs for aiming firing from hip anyway.
2) Yes. 0 means number of aim levels from hip is the same as from shoulder.
3) As Strohmann says. No need to inverse anything, it applies both to NCTH and OCTH the same.

Good to see you.

Report message to a moderator

Master Sergeant

Re: A Small Compilation of New Features[message #313839] Thu, 03 January 2013 18:43 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Sandro
Flugente:
I am pretty sure I've used the correct STI. I believe the dirt system was implemented after my features, so it is possible someone else used older STI and overwrote mine. Nevertheless, you may look into the code of dirt system and alt weapon holding system to see whether they adress the same pic number in the STI. If so, it needs to be changed first, then re-add the pic of alternative weapon holding.
Don't expect much initiative from me though. I am on loooooong vacation.

Aah. That seems to be the case. Dirt image overwrote your image. Damn. I hate it when it turns out that I'm the culprit after all. Will correct.

Have fun!

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #313852] Fri, 04 January 2013 00:29 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Sandro
In NCTH it makes more sense - you aim faster, but can't reach an accuracy anywhere near like when you fire from shoulder.
Ah, I see. So aiming the gun will be possible quickly but with worse results than from the shoulder. That was where I was stuck, I mistakenly thought maximum aim meant the same accuracy for both stances, not thinking of the aiming penalty.
Sandro
it is suitable for both OCTH and NCTH
You're thinking of everything. Nice.
Sandro
I am on loooooong vacation.
Hope you're enjoying it. Thanks for the help. It's appreciated. I've only recently developed a fresh appetite for JA2 after a long period of ArmA 2 and not playing at all. It feels awesome to check for updates and find those amazing projects of yours (and others). I feel excited. It's also great to find you in the forums for help when needed. It's good to 'see' you, too. Smile I wish you just the right mixture of relaxation and adventure for your New Year's vacation. Have a great time, Sandro.

Edit: Said value, by the way, has a semicolon (";") added. I have no idea if that works in the same line. I have once tried adding a comment using a semicolon and the game told me the value "TRUE;Commentblahblah" wasn't valid. You may want to check the SVN file and update the value accordingly if you haven't done so, yet.

Edit 2: Ctrl + Shift + LMB doesn't make my mercs jump over tiles when clicking 2 tiles away, it makes them move there in a straight line and pick something up. Is that function disabled?

[Updated on: Fri, 04 January 2013 19:27] by Moderator

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #313957] Sun, 06 January 2013 17:16 Go to previous messageGo to next message
Sandro is currently offline Sandro

 
Messages:420
Registered:November 2008
Location: Mars
LootFragg

Edit 2: Ctrl + Shift + LMB doesn't make my mercs jump over tiles when clicking 2 tiles away, it makes them move there in a straight line and pick something up. Is that function disabled?
Ups.. I've probably messed something up. This probably means Ctrl+Shift won't work either. Hmm, what key to use then? What about 'x'? It is used for swapping places with someone now, or anything else? It could be used for jumping if aiming on empty distant spot.

Report message to a moderator

Master Sergeant

Re: A Small Compilation of New Features[message #313981] Mon, 07 January 2013 14:31 Go to previous messageGo to next message
krux is currently offline krux

 
Messages:62
Registered:June 2011
I would suggest shift+j, as window jumping only works when facing a window the two functions wouldn't conflict.

Report message to a moderator

Corporal
Re: A Small Compilation of New Features[message #314154] Fri, 11 January 2013 19:44 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
I agree with krux. Use [Shift] + [J] as with window jumping. That would be somewhat intuitive and actually enhance that function instead of adding a new one. It then means "move over two squares in the direction you are facing, either through windows or over low obstacles".

I don't know if you have allowed for 3 tile jumping (long jumps). In that case, things would get a bit more difficult as the game would have to know what tile to jump to, meaning the cursor needs to be involved, as you say, by aiming on an empty distant spot. Still, I think [Shift] + [J] would be the best combination if you can make sure that jumping through windows gets priority when facing a window.

Consider that jumping won't be used often, usually in cases when you'd have to walk around a tiny rubble obstacle that prevents you from exiting a destroyed building through the broken wall or to hop over someone on the ground. Or a cowering child, that would be fun. I doubt it needs a quick hotkey for frequent use. I guess it'll cost plenty of APs.

Say, the way you intended it, will hopping over rocks and similar obstacles be possible with the "hop over shit" animation? Anything at less than chest height with no overhead obstruction, that is.

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #314155] Fri, 11 January 2013 19:51 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
As far as I can tell, 'hop over shit' only depends on the jsd structure. So it would only require a medium heap of tedious work.

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #314451] Sun, 20 January 2013 20:49 Go to previous messageGo to next message
Sandro is currently offline Sandro

 
Messages:420
Registered:November 2008
Location: Mars
Unfortunately 'Shift+J' won't go. That's because as LootFragg already figured, it must be handled by a cursor positioning and cursos type "swap" by holding specific hotkey. You would have to hold shift+j.
And yes the long jump is implemented too.

Report message to a moderator

Master Sergeant

Re: A Small Compilation of New Features[message #316912] Tue, 02 April 2013 09:16 Go to previous messageGo to next message
Istrebitel is currently offline Istrebitel

 
Messages:212
Registered:December 2009
Location: Russia, Saint-Petersburg
So, in lastest unstable, how do you jump? I tried everything but cannot get the jump cursor to appear...

Report message to a moderator

Sergeant 1st Class
Re: A Small Compilation of New Features[message #316935] Tue, 02 April 2013 15:47 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:720
Registered:February 2011
Location: Estonia,Tallinn
Istrebitel
So, in lastest unstable, how do you jump? I tried everything but cannot get the jump cursor to appear...


i think he meant Jumping over windows

Report message to a moderator

First Sergeant
Re: A Small Compilation of New Features[message #316938] Tue, 02 April 2013 16:11 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
If it's the jump over obstacles feature you mean it is keyed to shift+ctrl+LMB which unfortunately doesn't work because the hand cursor appears while holding ctrl. I've changed this to shift+alt+LMB and it works now. Maybe some coder can change this keyset in the main build so this feature works again (at the end of HandleUI.cpp file in the source code twice if( !(_KeyDown( SHIFT ) && _KeyDown( CTRL )) ).

Report message to a moderator

Corporal 1st Class
Re: A Small Compilation of New Features[message #316948] Wed, 03 April 2013 00:00 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Could you explain where that first key location is? (The one where you changed CTRL to ALT to make it work).

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #316949] Wed, 03 April 2013 00:24 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
At the end of Handle UI.cpp file is a block called BOOLEAN IsValidJumpLocation( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEAN fCheckForPath )

There is a line at 6924 and another at 7057 that checks whether Shift+Ctrl are pressed.

This is the code from my disk where I have changed this to Alt (original code after "//")

// This function contains the logic for allowing the player
// to jump over people.
BOOLEAN IsValidJumpLocation( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEAN fCheckForPath )
{
	// SANDRO: been here, did mess
	INT32 sFourGrids[4], sDistance=0, sSpot, sInBetween, sInBetween2, iDoorGridNo;
	static const UINT8 sDirs[4] = { NORTH, EAST, SOUTH, WEST };
	//INT32 cnt;
	UINT8	ubGuyThere, ubMovementCost, ubDirection;
	INT8 bTileHeight = 0;

	// SANDRO: commented out to allow jumping even in cases we could get to the destination normally
	// First check that action point cost is zero so far
	// ie: NO PATH!
	/*if ( gsCurrentActionPoints != 0 && fCheckForPath )
	{
		return( FALSE );
	}*/
	
	// Loop through positions...
	for (INT8 cnt = 0; cnt < 4; cnt++)
	{
		// MOVE OUT TWO DIRECTIONS
		sInBetween = NewGridNo( sGridNo, DirectionInc( sDirs[ cnt ] ) );

		// SANDRO: moved this someplace else and made it more fluid
		// ATE: Check our movement costs for going through walls!
		/*ubMovementCost = gubWorldMovementCosts[ sIntSpot ][ sDirs[ cnt ] ][ pSoldier->pathing.bLevel ];
		if ( IS_TRAVELCOST_DOOR( ubMovementCost ) )
		{
			ubMovementCost = DoorTravelCost( pSoldier, sIntSpot, ubMovementCost, (BOOLEAN) (pSoldier->bTeam == gbPlayerNum), &iDoorGridNo );
		}*/

		// If we have hit an obstacle, STOP HERE
		//if ( ubMovementCost >= TRAVELCOST_BLOCKED )
		//{
		//	// no good, continue
		//	continue;
		//}


		// TWICE AS FAR!
		sFourGrids[cnt] = sSpot = NewGridNo( sInBetween, DirectionInc( sDirs[ cnt ] ) );

		// Is the soldier we're looking at here?
		ubGuyThere = WhoIsThere2( sSpot, pSoldier->pathing.bLevel );

		// Alright folks, here we are!
		if ( ubGuyThere == pSoldier->ubID )
		{
			// Double check OK destination......
			if ( NewOKDestination( pSoldier, sGridNo, TRUE, (INT8)gsInterfaceLevel ) && IsLocationSittable( sGridNo, pSoldier->pathing.bLevel ) )
			{
				// If the soldier in the middle of doing stuff?
				if ( !pSoldier->flags.fTurningUntilDone )
				{
					// OK, NOW check if there is a guy in between us
					//
					// SANDRO: made this a bit different - if we hold down the shift key, and pointing at a spot 2 tiles away, we check if jumping 
					// there is possible for all cases, and if it is, then we juuuuumpppp!
					// So we don't care if there is a guy on the ground there, and the cursor wont appear atutomatically anymore
					//
					//ubGuyThere = WhoIsThere2( sIntSpot, pSoldier->pathing.bLevel );
					// Is there a guy and is he prone?
					//if ( ubGuyThere != NOBODY && ubGuyThere != pSoldier->ubID && gAnimControl[ MercPtrs[ ubGuyThere ]->usAnimState ].ubHeight == ANIM_PRONE )
					//{
					//	// It's a GO!
					//	return( TRUE );
					//}
					//else

					// Can't jump from a water tile (but we can jumpt TO a water tile)
					if ( pSoldier->MercInWater() )
					{
						return( FALSE );
					}

					// check for cliffs and similar oddities
					if ( gpWorldLevelData[ sGridNo ].sHeight != gpWorldLevelData[ sSpot ].sHeight )
					{
						return( FALSE );
					}

					// If there's a guy here, and he's not prone, we can't jump over him (maybe the way we hop over fence when he's crouched? lol)
					ubGuyThere = WhoIsThere2( sInBetween, pSoldier->pathing.bLevel );
					if ( ubGuyThere != NOBODY && ubGuyThere != pSoldier->ubID )
					{
						if ( gAnimControl[ MercPtrs[ ubGuyThere ]->usAnimState ].ubHeight != ANIM_PRONE )
						{
							return( FALSE );
						}
						else if ( gsCurrentActionPoints == 0 || !fCheckForPath )
						{
							return( TRUE );
						}
					}

					// Get the height of stuff on the tile, we can only jump over low obstacles like this
					bTileHeight = GetTallestStructureHeight( sInBetween, pSoldier->pathing.bLevel );
					if ( bTileHeight > 0 && !IsLocationSittableExcludingPeople( sInBetween, pSoldier->pathing.bLevel ) && !( pSoldier->pathing.bLevel && FlatRoofAboveGridNo( sInBetween ) )) 
					{
						return( FALSE );
					}

					// Check again for these structures as they may have odd height preset
					if (( FindStructure( sInBetween, STRUCTURE_TREE ) != NULL || FindStructure( sInBetween, STRUCTURE_FENCE ) != NULL ||
						 FindStructure( sInBetween, STRUCTURE_WIREFENCE ) != NULL || FindStructure( sInBetween, STRUCTURE_VEHICLE ) != NULL ||
						 FindStructure( sInBetween, STRUCTURE_CAVEWALL ) != NULL ) && !IsLocationSittableExcludingPeople( sInBetween, pSoldier->pathing.bLevel ))
					{	
						return( FALSE );
					}

					// Now check for walls between the tiles
					// Between our tile and the middle tile...
					ubDirection = GetDirectionToGridNoFromGridNo( sInBetween, pSoldier->sGridNo );
					ubMovementCost = gubWorldMovementCosts[ pSoldier->sGridNo ][ ubDirection ][ pSoldier->pathing.bLevel ];
					if ( IS_TRAVELCOST_DOOR( ubMovementCost ) )
					{
						ubMovementCost = DoorTravelCost( pSoldier, pSoldier->sGridNo, ubMovementCost, (BOOLEAN) (pSoldier->bTeam == gbPlayerNum), &iDoorGridNo );
					}
					if ( ubMovementCost >= TRAVELCOST_BLOCKED )
					{
						return( FALSE );
					}
					// Between destination tile and the middle tile...
					ubDirection = GetDirectionToGridNoFromGridNo( sInBetween, sGridNo );
					ubMovementCost = gubWorldMovementCosts[ sGridNo ][ ubDirection ][ pSoldier->pathing.bLevel ];
					if ( IS_TRAVELCOST_DOOR( ubMovementCost ) )
					{
						ubMovementCost = DoorTravelCost( pSoldier, sGridNo, ubMovementCost, (BOOLEAN) (pSoldier->bTeam == gbPlayerNum), &iDoorGridNo );
					}
					if ( ubMovementCost >= TRAVELCOST_BLOCKED )
					{
						return( FALSE );
					}
						
					if( !(_KeyDown( SHIFT ) && _KeyDown( ALT )) ) //if( !(_KeyDown( SHIFT ) && _KeyDown( CTRL )) )
					{
						return( FALSE );
					}

					// If we got here, we are good to go
					return ( TRUE );
				}
			}
		}
		// Attempt to long jump
		else
		{
			// 3 TILES FAR!
			sInBetween2 = sSpot; 
			sSpot = NewGridNo( sInBetween2, DirectionInc( sDirs[ cnt ] ) );

			// Is the soldier we're looking at here?
			ubGuyThere = WhoIsThere2( sSpot, pSoldier->pathing.bLevel );

			// Alright folks, here we are!
			if ( ubGuyThere == pSoldier->ubID )
			{
				// Double check OK destination......
				if ( NewOKDestination( pSoldier, sGridNo, TRUE, (INT8)gsInterfaceLevel ) && IsLocationSittable( sGridNo, pSoldier->pathing.bLevel ) )
				{
					// If the soldier in the middle of doing stuff?
					if ( !pSoldier->flags.fTurningUntilDone )
					{			
						// Can't jump from a water tile (but we can jumpt TO a water tile)
						if ( pSoldier->MercInWater() )
						{
							return( FALSE );
						}

						// This ain't gonna happen with backpack
						if((UsingNewInventorySystem() == true) && FindBackpackOnSoldier( pSoldier ) != ITEM_NOT_FOUND )
						{
							return( FALSE );
						}

						// check for cliffs and similar oddities
						if ( gpWorldLevelData[ sGridNo ].sHeight != gpWorldLevelData[ sSpot ].sHeight )
						{
							return( FALSE );
						}

						// If there's a guy on any of the two middle tiles, and he's not prone, we can't jump over him
						ubGuyThere = WhoIsThere2( sInBetween, pSoldier->pathing.bLevel );
						if ( ubGuyThere != NOBODY && ubGuyThere != pSoldier->ubID && gAnimControl[ MercPtrs[ ubGuyThere ]->usAnimState ].ubHeight != ANIM_PRONE )
						{
							return( FALSE );
						}
						ubGuyThere = WhoIsThere2( sInBetween2, pSoldier->pathing.bLevel );
						if ( ubGuyThere != NOBODY && ubGuyThere != pSoldier->ubID && gAnimControl[ MercPtrs[ ubGuyThere ]->usAnimState ].ubHeight != ANIM_PRONE )
						{
							return( FALSE );
						}

						// Get the height of stuff on both middle tiles, we can only jump over low obstacles
						bTileHeight = GetTallestStructureHeight( sInBetween, pSoldier->pathing.bLevel );
						if ( bTileHeight > 0 && !IsLocationSittableExcludingPeople( sInBetween, pSoldier->pathing.bLevel ) && !( pSoldier->pathing.bLevel && FlatRoofAboveGridNo( sInBetween ) )) 
						{
							return( FALSE );
						}
						bTileHeight = GetTallestStructureHeight( sInBetween2, pSoldier->pathing.bLevel );
						if ( bTileHeight > 0 && !IsLocationSittableExcludingPeople( sInBetween2, pSoldier->pathing.bLevel ) && !( pSoldier->pathing.bLevel && FlatRoofAboveGridNo( sInBetween2 ) )) 
						{
							return( FALSE );
						}

						// Check again for these structures as they may have odd height preset
						if (( FindStructure( sInBetween, STRUCTURE_TREE ) != NULL || FindStructure( sInBetween, STRUCTURE_FENCE ) != NULL ||
							 FindStructure( sInBetween, STRUCTURE_WIREFENCE ) != NULL || FindStructure( sInBetween, STRUCTURE_VEHICLE ) != NULL ||
							 FindStructure( sInBetween, STRUCTURE_CAVEWALL ) != NULL ) && !IsLocationSittableExcludingPeople( sInBetween, pSoldier->pathing.bLevel ))
						{	
							return( FALSE );
						}
						if (( FindStructure( sInBetween2, STRUCTURE_TREE ) != NULL || FindStructure( sInBetween2, STRUCTURE_FENCE ) != NULL ||
							 FindStructure( sInBetween2, STRUCTURE_WIREFENCE ) != NULL || FindStructure( sInBetween2, STRUCTURE_VEHICLE ) != NULL ||
							 FindStructure( sInBetween2, STRUCTURE_CAVEWALL ) != NULL ) && !IsLocationSittableExcludingPeople( sInBetween2, pSoldier->pathing.bLevel ))
						{	
							return( FALSE );
						}

						// Now check for walls between the tiles
						// Between our tile and the middle tile next to us...
						ubDirection = GetDirectionToGridNoFromGridNo( sInBetween2, pSoldier->sGridNo );
						ubMovementCost = gubWorldMovementCosts[ pSoldier->sGridNo ][ ubDirection ][ pSoldier->pathing.bLevel ];
						if ( IS_TRAVELCOST_DOOR( ubMovementCost ) )
						{
							ubMovementCost = DoorTravelCost( pSoldier, pSoldier->sGridNo, ubMovementCost, (BOOLEAN) (pSoldier->bTeam == gbPlayerNum), &iDoorGridNo );
						}
						if ( ubMovementCost >= TRAVELCOST_BLOCKED )
						{
							return( FALSE );
						}
						// Between destination tile and the middle tile next to it...
						ubDirection = GetDirectionToGridNoFromGridNo( sInBetween, sGridNo );
						ubMovementCost = gubWorldMovementCosts[ sGridNo ][ ubDirection ][ pSoldier->pathing.bLevel ];
						if ( IS_TRAVELCOST_DOOR( ubMovementCost ) )
						{
							ubMovementCost = DoorTravelCost( pSoldier, sGridNo, ubMovementCost, (BOOLEAN) (pSoldier->bTeam == gbPlayerNum), &iDoorGridNo );
						}
						if ( ubMovementCost >= TRAVELCOST_BLOCKED )
						{
							return( FALSE );
						}
						// Now we need to check if there is not a wall between the two middle tiles
						ubDirection = GetDirectionToGridNoFromGridNo( sInBetween2, sInBetween );
						switch (ubDirection)
						{
						case NORTH: 
							if ( WallOrClosedDoorExistsOfTopLeftOrientation( sInBetween ) )
								return( FALSE );
							break;
						case EAST: 
							if ( WallOrClosedDoorExistsOfTopRightOrientation( sInBetween2 ) )
								return( FALSE );
							break;
						case SOUTH:
							if ( WallOrClosedDoorExistsOfTopLeftOrientation( sInBetween2 ) )
								return( FALSE );
							break;
						case WEST:
							if ( WallOrClosedDoorExistsOfTopRightOrientation( sInBetween ) )
								return( FALSE );
							break;	
						default:
							return( FALSE );
							break;							
						}
						
						if( !(_KeyDown( SHIFT ) && _KeyDown( ALT )) ) //if( !(_KeyDown( SHIFT ) && _KeyDown( CTRL )) )
						{
							return( FALSE );
						}						

						// If we got here, we are good to go
						return ( TRUE );
					}
				}
			}
		}
	}

	return( FALSE );
}

Report message to a moderator

Corporal 1st Class
Re: A Small Compilation of New Features[message #316950] Wed, 03 April 2013 00:38 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Hmmm. That works, however, this causes very weird stuff when jumping over fences... the merc perfroms the jumping animation... on the tile behind him. Ordering him to jump a fence causes him to jump backwards oO.

Edit: Anyway, its in (r5977). The animation is the running animation, so the merc runs through the other guy instead of jumping... is that intended?

[Updated on: Wed, 03 April 2013 00:51] by Moderator

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #316975] Wed, 03 April 2013 14:28 Go to previous messageGo to next message
merc05 is currently offline merc05

 
Messages:90
Registered:January 2013
Flugente
Hmmm. That works, however, this causes very weird stuff when jumping over fences... the merc perfroms the jumping animation... on the tile behind him. Ordering him to jump a fence causes him to jump backwards oO.


That's strange. I don't seem to have this issue, either with jumping over fences or through windows. I'll see if this starts happening with the new exe. EDIT: Correction, that does happen in my game. It happens when holding Alt while attemting to jump over a fence. But I don't think it has anything to do with changing this keyset as it doesn't even display the jump over obstacle cursor when this bug appears. Looks like an omitted bug with jump over fence command (I think it has something to do with Alt key making the merc strafe backwards).

Flugente
Edit: Anyway, its in (r5977). The animation is the running animation, so the merc runs through the other guy instead of jumping... is that intended?


That was the original behaviour. I think there is no animation for long jump made.

[Updated on: Wed, 03 April 2013 14:54] by Moderator

Report message to a moderator

Corporal 1st Class
Re: A Small Compilation of New Features[message #316981] Wed, 03 April 2013 15:46 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Yes, jumping over a tile is like the original jumping over a prone merc which was just running over him.

And yes, Alt is the mess-up key. It changes JA2's behaviour entirely. Strafing backwards and sideways as merc05 mentioned. It's the reason why Alt+Tabbing out of the game can lead to the game acting weird afterwards because the Alt key is still stuck from the game's viewpoint. I recommend neither using Shift (direct path) nor Ctrl (hand cursor) nor Alt (strafe) for that option.

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #316996] Wed, 03 April 2013 21:36 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Yes, I was just surprised that the messing is so extreme that it causes mercs to jump backwards in the wrong direction Wink

Report message to a moderator

Captain

Re: A Small Compilation of New Features[message #320636] Fri, 24 May 2013 18:50 Go to previous messageGo to next message
arkanglesk is currently offline arkanglesk

 
Messages:29
Registered:June 2011
Hi there! I need some help with the weapon recoil feature...

I created a new Assault Rifle and put it into the game, it uses my own custom caliber and magazine. It's a lightweight 2.5kg (unloaded, no attachments) which uses 0.4 kg mags. It's got a 4x scope, reflex sight, laser sight, flash suppressor and keltec foregrip (the one that can be made a bipod).

Once everything is in place the little bugger weighs 3.9kg. Almost nothing, right? However, for some reason, it drains my mercs' energy when fired... no matter who's got it, from a medic w/75 strength to an auto-weapons specialist w/99 strength. Going prone does seem to reduce the drain but it's still waaay too much for this lightweight AR.
I've already tried reducing the value in the xml from its original 12 to 5 to 1... Effect is not reduced.

I thank you all in advance for any help Smile

Report message to a moderator

Private 1st Class
Re: A Small Compilation of New Features[message #320678] Fri, 24 May 2013 22:11 Go to previous messageGo to next message
Strohmann is currently offline Strohmann

 
Messages:287
Registered:August 2011
Location: Division Thought Crimes
Description 1st page of this Thread
Weapon recoil kick:

This is a little different from struggling with weapon weight, it is about how much the gun "kicks" our shoulder (or hand).
Single shots may not prove much effect, but on autofire this may incure some nasty energy loss with certain guns.
The formula is based on weapon impact and weight, where weight actually help us out here, since it absorbs the back force of the recoil. Again, the cost is reduced by stance (nearly erased by bipod and/or weapon resting, greatly reduced when firing from hip), foregrip etc.
The ini setting represents percentual modifier to the final cost, so you can tweak it up or down as you like.
0 = disabled. 100 = default. Max is 250 (rather excessive).
Weapons.xml
xyz
Items.xml

[Updated on: Fri, 24 May 2013 22:22] by Moderator

Report message to a moderator

Master Sergeant
Re: A Small Compilation of New Features[message #320983] Mon, 27 May 2013 15:12 Go to previous message
arkanglesk is currently offline arkanglesk

 
Messages:29
Registered:June 2011
Thank you!

It's working now... Impact was up at 50 for some reason... I don't remember changing that and seeing as I cloned my gun from the Beretta Cx4... Oh well.
Any ways, thanks for that highlight on exactly what I was missing... hehe. Wish me some happy shooting! Very Happy

[Updated on: Mon, 27 May 2013 15:13] by Moderator

Report message to a moderator

Private 1st Class
Previous Topic: goc_man Single Click Installers
Next Topic: [Linux] ja2 1.13 linux port (alpha release)
Goto Forum:
  


Current Time: Fri Mar 29 07:16:34 GMT+2 2024

Total time taken to generate the page: 0.02613 seconds