DayZ 1.24
Loading...
Searching...
No Matches
Man.c
Go to the documentation of this file.
1class Man extends EntityAI
2{
9
11
16
21
24
27
28 void Man()
29 {
30 SetFlags(EntityFlags.TOUCHTRIGGERS, false);
31 }
32
33 override bool IsMan()
34 {
35 return true;
36 }
37
38 override bool IsHealthVisible()
39 {
40 return false;
41 }
42
44 {
45 return true;
46 }
47
49
51 {
52 if (IsAlive())
53 return EPlayerStates.ALIVE;
54
55 return EPlayerStates.DEAD;
56 }
57
59
62 {
63 HumanInventory i = HumanInventory.Cast(GetInventory());
64 return i;
65 }
66
67 //Called when an item is removed from the cargo of this item
69 //Called when an item is moved around in the cargo of this item
71
73 {
74 if (!m_OnItemAddedToHands)
75 m_OnItemAddedToHands = new ScriptInvoker();
76
78 }
79
80
82 {
83 if (!m_OnItemRemovedFromHands)
84 m_OnItemRemovedFromHands = new ScriptInvoker;
85
87 }
88
90 {
91 SetWeightDirty();
92 if (m_OnItemAddedToHands)
93 m_OnItemAddedToHands.Invoke(item, this);
94 }
95
97 {
98 SetWeightDirty();
99 if (m_OnItemRemovedFromHands)
100 m_OnItemRemovedFromHands.Invoke(item, this);
101 }
102
105 {
106 return DropEntityImpl(InventoryMode.JUNCTURE, this, item);
107 }
108
110 {
112 {
113 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveDropEntity input data not sent yet, cannot allow another input action");
114 return false;
115 }
116
117 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
118 return JunctureDropEntity(item);
119 else
120 return DropEntityImpl(InventoryMode.PREDICTIVE, this, item);
121 }
122
124 {
125 return DropEntityImpl(InventoryMode.LOCAL, this, item);
126 }
127
129 {
130 return DropEntityImpl(InventoryMode.SERVER, this, item);
131 }
132
134 {
135 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::DropEntity(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
138 return code;
139 }
141
142 override bool CanDropEntity(notnull EntityAI item) { return true; }
143
145
147
153
155 {
157 {
158 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityToHands input data not sent yet, cannot allow another input action");
159 return;
160 }
161
162 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
164 else
166 }
167
172
177
179 {
180 if (!GetGame().IsDedicatedServer())
181 {
183 il.SetHands(this, item);
184 //GetInventory().AddInventoryReservationEx(item, il ,GameInventory.c_InventoryReservationTimeoutShortMS);
185 }
186
187 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2Hands(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
189
191 if (item.GetInventory().GetCurrentInventoryLocation(src_item))
192 {
193 if (itemInHands == null)
194 {
196 hand_dst.SetHands(this, item);
198 }
199 else if (GetHumanInventory().CanSwapEntitiesEx(itemInHands, item))
200 GetInventory().SwapEntities(mode, itemInHands, item);
202 }
203 }
205
207 {
208 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Destroy IH=" + GetHumanInventory().GetEntityInHands());
211 }
212
214 {
215 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Stash IH=" + GetHumanInventory().GetEntityInHands());
217 {
218 Print("[inv] PredictiveMoveItemFromHandsToInventory input data not sent yet, cannot allow another input action");
219 return;
220 }
221
223
224 if (NeedInventoryJunctureFromServer(GetHumanInventory().GetEntityInHands(), this, this))
225 invMode = InventoryMode.JUNCTURE;
226
228 if (GetHumanInventory().GetEntityInHands().m_OldLocation && GetHumanInventory().GetEntityInHands().m_OldLocation.IsValid())
229 {
231 GetHumanInventory().GetEntityInHands().GetInventory().GetCurrentInventoryLocation(invLoc);
232 //old location is somewhere on player
233 if (GetHumanInventory().GetEntityInHands().m_OldLocation.GetParent() && GetHumanInventory().GetEntityInHands().m_OldLocation.GetParent().GetHierarchyRootPlayer())
234 {
235 if (GetHumanInventory().LocationCanMoveEntity(invLoc, GetHumanInventory().GetEntityInHands().m_OldLocation))
236 {
237 if (GetHumanInventory().TakeToDst(invMode, invLoc, GetHumanInventory().GetEntityInHands().m_OldLocation))
238 {
240 return;
241 }
242 }
243 }
244 }
245
246 GetHumanInventory().TakeEntityToInventory(invMode, FindInventoryLocationType.ATTACHMENT | FindInventoryLocationType.CARGO, GetHumanInventory().GetEntityInHands());
248 }
249
252 {
253 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Replace !HND lambda=" + lambda.DumpToString());
256 return code;
257 }
258
263
269
272 {
273 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Replace !HND->HND lambda=" + lambda.DumpToString());
276 return code;
277 }
278
283
289
292 {
293 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Replace HND->HND lambda=" + lambda.DumpToString());
296 return code;
297 }
298
303
309
312 {
313 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Replace HND->elsewhere lambda=" + lambda.DumpToString());
316 return code;
317 }
318
323
329
335
337 {
339 {
340 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityToInventory input data not sent yet, cannot allow another input action");
341 return false;
342 }
343
344 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
345 return JunctureTakeEntityToInventory(flags, item);
346 else
347 return TakeEntityToInventoryImpl(InventoryMode.PREDICTIVE, flags, item);
348 }
349
354
359
361 {
362 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2Inv(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
365 return code;
366 }
368
374
376 {
378 {
379 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityToCargo input data not sent yet, cannot allow another input action");
380 return false;
381 }
382
383 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
385 else
386 return TakeEntityToCargoImpl(InventoryMode.PREDICTIVE, item);
387 }
388
393
395 {
397 }
398
400 {
401 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2Cgo(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
404 return code;
405 }
407
413
415 {
417 {
418 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityAsAttachment input data not sent yet, cannot allow another input action");
419 return false;
420 }
421
422 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
424 else
426 }
427
432
437
439 {
440 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2Att(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
443 return code;
444 }
446
452
454 {
456 {
457 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityAsAttachmentEx input data not sent yet, cannot allow another input action");
458 return false;
459 }
460
461 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), this))
463 else
464 return TakeEntityAsAttachmentExImpl(InventoryMode.PREDICTIVE, item, slot);
465 }
466
468 {
470 }
471
473 {
474 return TakeEntityAsAttachmentExImpl(InventoryMode.SERVER, item, slot);
475 }
476
478 {
479 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2AttEx(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
482 return code;
483 }
485
491
493 {
495 {
496 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveSwapEntities input data not sent yet, cannot allow another input action");
497 return false;
498 }
499
500 bool need_j1 = NeedInventoryJunctureFromServer(item1, item1.GetHierarchyParent(), item2.GetHierarchyParent());
501 bool need_j2 = NeedInventoryJunctureFromServer(item2, item2.GetHierarchyParent(), item1.GetHierarchyParent());
502 if (need_j1 || need_j2)
503 return SwapEntitiesImpl(InventoryMode.JUNCTURE, item1, item2);
504 else
505 return SwapEntitiesImpl(InventoryMode.PREDICTIVE, item1, item2);
506 }
507
512
517
519 {
520 bool code;
521 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::SwapImpl(" + typename.EnumToString(InventoryMode, mode) + ") item1=" + Object.GetDebugName(item1) + " item2=" + item2.GetDebugName(this));
523 Error("[inv] (Man@" + this + ") SwapEntitiesImpl - cannot swap items!");
524
526
528 if (!code)
529 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " SwapEntitiesImpl - cannot swap or forceswap");
530 return code;
531 }
533
539
541 {
543 {
544 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveForceSwapEntities input data not sent yet, cannot allow another input action");
545 return false;
546 }
547
548 bool need_j1 = NeedInventoryJunctureFromServer(item1, item1.GetHierarchyParent(), item2.GetHierarchyParent());
549 bool need_j2 = NeedInventoryJunctureFromServer(item2, item2.GetHierarchyParent(), item1.GetHierarchyParent());
550 if (need_j1 || need_j2)
552 else
554 }
555
560
565
567 {
568 bool code = false;
569 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ForceSwapImpl(" + typename.EnumToString(InventoryMode, mode) + ") item1=" + Object.GetDebugName(item1) + " item2=" + item2.GetDebugName(this));
571
573 if (!code)
574 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ForceSwapEntitiesImpl - cannot Forceswap");
575 return code;
576 }
578
584
586 {
588 {
589 Print("[inv] " + GetSimulationTimeStamp() + " ::PredictiveTakeEntityToTargetInventory input data not sent yet, cannot allow another input action");
590 return false;
591 }
592
593 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), target))
595 else
596 return TakeEntityToTargetInventoryImpl(InventoryMode.PREDICTIVE, target, flags, item);
597 }
598
600 {
601 if (GetInventory().CanAddAttachment(item))
603 else
604 {
605 for (int i = 0; i < item.GetInventory().GetSlotIdCount(); i++)
606 {
607 int slot_id = item.GetInventory().GetSlotId(i);
608 EntityAI slot_item = GetInventory().FindAttachment(slot_id);
609 if (slot_item && GetInventory().CanSwapEntitiesEx(item, slot_item))
611 }
612 }
613 return false;
614 }
615
620
622 {
623 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2TargetInv(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
624 bool code = GetInventory().TakeEntityToTargetInventory(mode, target, flags, item);
626 return code;
627 }
629
635
637 {
639 {
640 Print("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::PredictiveTakeEntityToTargetCargoEx input data not sent yet, cannot allow another input action");
641 return false;
642 }
643
644 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), cargo.GetCargoOwner()))
646 else
648 }
649
654
659
661 {
662 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2TargetCgoEx(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
663 bool code = GetInventory().TakeEntityToTargetCargoEx(mode, cargo, item, row, col);
665 return code;
666 }
668
674
676 {
678 {
679 Print("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::PredictiveTakeEntityToTargetCargo input data not sent yet, cannot allow another input action");
680 return false;
681 }
682
683 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), target))
685 else
687 }
688
693
695 {
696 if (IsAlive())
698 else
700 }
701
703 {
704 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " Take2TargetCgo(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
705
706 bool code = GetInventory().TakeEntityToTargetInventory(mode, target, FindInventoryLocationType.CARGO, item);
708 return code;
709 }
711
717
719 {
721 {
722 Print("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::PredictiveTakeEntityToTargetAttachmentEx input data not sent yet, cannot allow another input action");
723 return false;
724 }
725
726 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), target))
728 else
730 }
731
736
741
743 {
744 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2TargetAtt(" + typename.EnumToString(InventoryMode, mode) + ") item=" + Object.GetDebugName(item));
745 bool code = GetInventory().TakeEntityAsTargetAttachmentEx(mode, target, item, slot);
747 return code;
748 }
750
756
758 {
760 {
761 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeEntityToTargetAttachment input data not sent yet, cannot allow another input action");
762 return false;
763 }
764
765 if (NeedInventoryJunctureFromServer(item, item.GetHierarchyParent(), target))
767 else
769 }
770
775
780
782 {
784 if (target.GetInventory().FindFreeLocationFor(item, FindInventoryLocationType.ATTACHMENT, il))
786 return false;
787 }
789
795
797 {
799 {
800 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeToDst input data not sent yet, cannot allow another input action");
801 return false;
802 }
803
804 if (NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
805 return JunctureTakeToDst(src, dst);
806 else
807 return TakeToDstImpl(InventoryMode.PREDICTIVE, src, dst);
808 }
809
814
819
821 {
822 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::Take2Dst(" + typename.EnumToString(InventoryMode, mode) + ") src=" + InventoryLocation.DumpToStringNullSafe(src) + " dst=" + InventoryLocation.DumpToStringNullSafe(dst));
825 return code;
826 }
829
831 {
832
833 }
834
835 override bool CanBeSkinned()
836 {
837 return true;
838 }
839
841
844
849
852 proto native float StatGet(string name);
854
858 proto void StatGetCounter(string name, out string value);
860
864 proto void StatGetAsTime(string name, out string value);
866
870 proto native void StatUpdate(string name, float value);
872
878
884
898
900 {
901 return false;
902 }
903
905
908 {
909 return Transport.Cast(GetParent()) != null;
910 }
911
915 void OnGameplayDataHandlerSync(); //depricated, sync now happens before the player is created, calling of this event still happens for legacy reasons
917};
void syncDebugPrint(string s)
Definition Debug.c:1
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Definition Inventory.c:22
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
override bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
EPlayerStates
FindInventoryLocationType
flags for searching locations in inventory
represents base for cargo storage for entities
Definition Cargo.c:7
bool ReplaceItemInHandsWithNewImpl(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
hand replace
Definition Man.c:291
override bool ServerTakeEntityToTargetAttachment(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:776
override bool IsHealthVisible()
Definition Man.c:38
proto native void StatUpdateByTime(string name)
Updates stat counter by time.
override bool PredictiveTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
Definition Man.c:796
void AddItemToDelete(EntityAI item)
override bool LocalTakeEntityToTargetInventory(notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:616
override bool PredictiveTakeEntityToInventory(FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:336
override bool LocalTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
Definition Man.c:810
override bool PredictiveTakeEntityAsAttachment(notnull EntityAI item)
Definition Man.c:414
bool JunctureTakeEntityToTargetCargoEx(notnull CargoBase cargo, notnull EntityAI item, int row, int col)
to target cgo ex juncture
Definition Man.c:631
ref ScriptInvoker m_OnItemAddedToHands
Definition Man.c:68
bool JunctureTakeEntityAsAttachment(notnull EntityAI item)
as att juncture
Definition Man.c:409
bool TakeEntityToCargoImpl(InventoryMode mode, notnull EntityAI item)
Definition Man.c:399
bool ServerReplaceItemInHandsWithNewElsewhere(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:324
override bool PredictiveTakeEntityAsAttachmentEx(notnull EntityAI item, int slot)
Definition Man.c:453
void UpdateInventoryMenu()
bool JunctureTakeEntityToTargetCargo(notnull EntityAI target, notnull EntityAI item)
to target cgo juncture
Definition Man.c:670
bool LocalReplaceItemElsewhereWithNewInHands(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:279
override bool PredictiveDropEntity(notnull EntityAI item)
Definition Man.c:109
override bool ServerTakeEntityToTargetCargo(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:694
override bool ServerTakeEntityToCargo(notnull EntityAI item)
Definition Man.c:394
bool JunctureDropEntity(notnull EntityAI item)
drop juncture
Definition Man.c:104
bool LocalReplaceItemInHandsWithNewElsewhere(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:319
ScriptInvoker GetOnItemAddedToHands()
Definition Man.c:72
void Man()
Definition Man.c:28
bool IsInventorySoftLocked()
Definition Man.c:899
void SetInventorySoftLock(bool status)
override bool PredictiveTakeEntityToTargetInventory(notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:585
bool LocalReplaceItemInHandsWithNew(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:299
override bool LocalTakeEntityToInventory(FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:350
bool IsInTransport()
returns true if man is in transport, false otherwise
Definition Man.c:907
proto native void StatSyncToClient()
override bool ServerTakeEntityToTargetAttachmentEx(notnull EntityAI target, notnull EntityAI item, int slot)
Definition Man.c:737
bool ServerSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
Definition Man.c:513
override bool LocalTakeEntityAsAttachmentEx(notnull EntityAI item, int slot)
Definition Man.c:467
void LocalDestroyEntityInHands()
Definition Man.c:206
int GetPlayerState()
Definition Man.c:50
proto native void SetMasterAttenuation(string masterAttenuation)
override bool PredictiveTakeEntityToTargetAttachmentEx(notnull EntityAI target, notnull EntityAI item, int slot)
Definition Man.c:718
void JunctureTakeEntityToHands(notnull EntityAI item)
hand juncture
Definition Man.c:149
bool SwapEntitiesImpl(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2)
Definition Man.c:518
override bool ServerTakeEntityToInventory(FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:355
bool ReplaceItemWithNewImpl(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
!hand -> !hand replace
Definition Man.c:251
bool JunctureTakeEntityAsAttachmentEx(notnull EntityAI item, int slot)
as att ex juncture
Definition Man.c:448
bool ReplaceItemElsewhereWithNewInHandsImpl(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
!hand replace -> hand
Definition Man.c:271
void TakeEntityToHandsImpl(InventoryMode mode, EntityAI item)
Definition Man.c:178
bool ServerReplaceItemWithNew(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:264
override bool LocalTakeEntityToTargetAttachmentEx(notnull EntityAI target, notnull EntityAI item, int slot)
Definition Man.c:732
proto native float StatGet(string name)
Gets counter value of the specified stat type.
void OnItemInHandsChanged()
Definition Man.c:144
override bool LocalTakeEntityToTargetAttachment(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:771
override bool PredictiveTakeEntityToTargetCargo(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:675
proto native owned string GetMasterAttenuation()
override bool PredictiveTakeEntityToTargetAttachment(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:757
HumanInventory GetHumanInventory()
inventory
Definition Man.c:61
bool PredictiveForceSwapEntities(notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
Definition Man.c:540
bool JunctureSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
swap juncture
Definition Man.c:487
bool JunctureTakeEntityToTargetInventory(notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
to target inv juncture
Definition Man.c:580
proto native void StatInvokeUpdate()
override bool CanBeSkinned()
Definition Man.c:835
proto native EntityAI GetDrivingVehicle()
Returns vehicle which this Man object is driving. If this Man object isn't as driver of any vehicle i...
void ServerTakeEntityToHands(EntityAI item)
Definition Man.c:173
void LocalTakeEntityToHands(EntityAI item)
Definition Man.c:168
bool TakeEntityAsAttachmentExImpl(InventoryMode mode, notnull EntityAI item, int slot)
Definition Man.c:477
override bool CanDropEntity(notnull EntityAI item)
Definition Man.c:142
override bool IsMan()
Definition Man.c:33
override bool ServerTakeEntityToTargetCargoEx(notnull CargoBase cargo, notnull EntityAI item, int row, int col)
Definition Man.c:655
bool LocalSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
Definition Man.c:508
proto native owned string GetCurrentWeaponMode()
void EEItemIntoHands(EntityAI item)
Definition Man.c:89
bool PhysicalPredictiveDropItem(EntityAI entity, bool heavy_item_only=true)
proto native void SetFaceTexture(string texture_name)
Texture that is used on the Man's face and hands.
void StopDeathDarkeningEffect()
bool PredictiveTakeOrSwapAttachment(notnull EntityAI item)
Definition Man.c:599
proto void StatGetCounter(string name, out string value)
Gets counter value as string of the specified stat type.
override bool HasFixedActionTargetCursorPosition()
Definition Man.c:43
bool JunctureTakeEntityToCargo(notnull EntityAI item)
to cgo juncture
Definition Man.c:370
bool TakeEntityToTargetAttachmentExImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot)
Definition Man.c:742
bool JunctureTakeEntityToInventory(FindInventoryLocationType flags, notnull EntityAI item)
to inv juncture
Definition Man.c:331
bool ServerReplaceItemElsewhereWithNewInHands(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:284
bool LocalForceSwapEntities(notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
Definition Man.c:556
bool JunctureTakeEntityToTargetAttachmentEx(notnull EntityAI target, notnull EntityAI item, int slot)
to target att ex juncture
Definition Man.c:713
bool JunctureTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
to dst juncture
Definition Man.c:791
proto native void SetSpeechRestricted(bool state)
Set speech restriction.
proto native void SetFaceMaterial(string material_name)
Material that is used on the Man's face and hands.
proto native bool IsCameraInsideVehicle()
bool ForceSwapEntitiesImpl(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
Definition Man.c:566
override bool ServerTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
Definition Man.c:815
proto native bool StatRegister(string name)
override bool LocalTakeEntityToTargetCargoEx(notnull CargoBase cargo, notnull EntityAI item, int row, int col)
Definition Man.c:650
bool TakeToDstImpl(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
Definition Man.c:820
bool JunctureTakeEntityToTargetAttachment(notnull EntityAI target, notnull EntityAI item)
to target att juncture
Definition Man.c:752
bool ServerForceSwapEntities(notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
Definition Man.c:561
override bool LocalTakeEntityAsAttachment(notnull EntityAI item)
Definition Man.c:428
override bool LocalTakeEntityToCargo(notnull EntityAI item)
Definition Man.c:389
override bool LocalTakeEntityToTargetCargo(notnull EntityAI target, notnull EntityAI item)
Definition Man.c:689
override bool ServerDropEntity(notnull EntityAI item)
Definition Man.c:128
proto native void StatUpdate(string name, float value)
Updates stat counter with given value.
proto native PlayerIdentity GetIdentity()
Returns player's identity.
bool NeedInventoryJunctureFromServer(notnull EntityAI item, EntityAI currParent, EntityAI newParent)
Definition Man.c:146
proto native bool IsSpeechRestricted()
Check if player has resctricted speech.
bool TakeEntityToTargetAttachmentImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
Definition Man.c:781
proto native UAInterface GetInputInterface()
Returns player's input interface.
override bool ServerTakeEntityAsAttachment(notnull EntityAI item)
Definition Man.c:433
proto native void StatUpdateByPosition(string name)
Updates stat counter by player's actual position.
bool JunctureForceSwapEntities(notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
ForceSwap juncture.
Definition Man.c:535
bool CanPlaceItem(EntityAI item)
void SetProcessUIWarning(bool state)
ref ScriptInvoker m_OnItemRemovedFromHands
Definition Man.c:70
bool IsUnconscious()
void JunctureDeleteItem(EntityAI item)
Definition Man.c:830
bool DropEntityImpl(InventoryMode mode, notnull EntityAI owner, notnull EntityAI item)
Definition Man.c:133
bool TakeEntityToTargetCargoImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
Definition Man.c:702
bool TakeEntityToTargetCargoExImpl(InventoryMode mode, notnull CargoBase cargo, notnull EntityAI item, int row, int col)
Definition Man.c:660
proto void StatGetAsTime(string name, out string value)
Gets counter value as formatted time string of the specified stat type.
bool ServerReplaceItemInHandsWithNew(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:304
override bool ServerTakeEntityAsAttachmentEx(notnull EntityAI item, int slot)
Definition Man.c:472
proto native bool IsSoundInsideBuilding()
void PredictiveMoveItemFromHandsToInventory()
Definition Man.c:213
override bool LocalDropEntity(notnull EntityAI item)
Definition Man.c:123
void OnGameplayDataHandlerSync()
void EEItemOutOfHands(EntityAI item)
Definition Man.c:96
bool TakeEntityToTargetInventoryImpl(InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:621
ScriptInvoker GetOnItemRemovedFromHands()
Definition Man.c:81
void PredictiveTakeEntityToHands(EntityAI item)
Definition Man.c:154
override bool PredictiveTakeEntityToCargo(notnull EntityAI item)
Definition Man.c:375
bool TakeEntityAsAttachmentImpl(InventoryMode mode, notnull EntityAI item)
Definition Man.c:438
proto native void StatUpdateByGivenPos(string name, vector pos)
Updates stat counter by given position.
bool PredictiveSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
Definition Man.c:492
override bool PredictiveTakeEntityToTargetCargoEx(notnull CargoBase cargo, notnull EntityAI item, int row, int col)
Definition Man.c:636
bool ReplaceItemInHandsWithNewElsewhereImpl(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
hand replace2
Definition Man.c:311
bool LocalReplaceItemWithNew(ReplaceItemWithNewLambdaBase lambda)
Definition Man.c:259
bool TakeEntityToInventoryImpl(InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
Definition Man.c:360
script counterpart to engine's class Inventory
Definition Inventory.c:79
bool TakeEntityToCargo(InventoryMode mode, notnull EntityAI item)
moves item to cargo of this intentory
Definition Inventory.c:1054
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
Definition Inventory.c:610
bool TakeEntityAsAttachment(InventoryMode mode, notnull EntityAI item)
Definition Inventory.c:1134
inventory for plain man/human
override bool ReplaceItemWithNew(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
proto native EntityAI GetEntityInHands()
override bool TakeEntityAsAttachmentEx(InventoryMode mode, notnull EntityAI item, int slot)
bool ReplaceItemInHandsWithNewElsewhere(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
bool ReplaceItemElsewhereWithNewInHands(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
override bool TakeEntityToInventory(InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
override bool LocalDestroyEntity(notnull EntityAI item)
override bool DropEntity(InventoryMode mode, EntityAI owner, notnull EntityAI item)
bool ReplaceItemInHandsWithNew(InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
override bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
override bool ForceSwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
override bool SwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2)
InventoryLocation.
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsSyncLogEnable()
Definition Debug.c:759
The class that will be instanced (moddable)
Definition gameplay.c:376
base class for transformation operations (creating one item from another)
proto static native bool CanStoreInputUserData()
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
Base native class for all motorized wheeled vehicles.
Definition Car.c:75
override string GetDebugName()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90
proto void Print(void var)
Prints content of variable to console/log.
proto native void SetFlags(ShapeFlags flags)
EntityFlags
Entity flags.
Definition EnEntity.c:114
proto native Widget GetParent()
Get parent of the Effect.
Definition Effect.c:389