|
Wasteland Ghost
��������� ���� ����������
������: ������, ������ �����������: ���. 2002
�����: 2251 ���������
|
������, �� ��� ���������� ���������� . �������� � ���������� ��� ��� ����������� ��������� ������/������. ��� ���� ������: // --- ������� ���-���� � h --- #define MAXINT 4294967295 //Max int #define INV(x) (MAXINT - x) //An inverse function // get bit state #define bit_state(x, the_bit) ((x bwand the_bit) != 0) // switch bit on #define set_bit_on(x, the_bit) x := x bwor the_bit // switch bit off #define set_bit_off(x, the_bit) x := x bwand INV(the_bit) #define FLAG_BIG_GUN 4 // --- ����� �������� --- // --- ���-���� � ��������� --- f_ext := proto_data(obj_pid(obj_ptr), it_flags_ext); f_big_gun := get_bit(f_ext, FLAG_BIG_GUN);
|
����������: 13:05 - 2 �����, 2006
|
|
Anchorite
������������
������: �� ����� �����������: ���. 2003
�����: 283 ���������
|
Keha: ...���� ������������ � ���� ����� ������������������ �������... ����� � ����������������� ������������� ������ ����� ��������� � ���������� � ��������. Primary Attack Type (��� �������� �����): 0x00000000 = 0 - stand 0x00000001 = 1 - throw punch 0x00000002 = 2 - kick leg 0x00000003 = 3 - swing anim 0x00000004 = 4 - thrust anim 0x00000005 = 5 - throw anim 0x00000006 = 6 - fire single 0x00000007 = 7 - fire burst 0x00000008 = 8 - fire continuous Secondary Attack Type (��� �������������� �����): 0x00000000 = 0 - stand 0x00000010 = 16 - throw punch 0x00000020 = 32 - kick leg 0x00000030 = 48 - swing anim 0x00000040 = 64 - thrust anim 0x00000050 = 80 - throw anim 0x00000060 = 96 - fire single 0x00000070 = 112 - fire burst 0x00000080 = 128 - fire continuous ����� � ������� bwand �������� ������ ������ ����� � �������� � ���������� �����������. ��� ����� �������� � ���� �������, �.�. �������� ������� ����� ��������� � ���. �������. flagExt:= proto_data(pid, 7) primaryAtackType := flagExt bwand 15; /* 15 = 0x0000000F */ secondaryAtackType := flagExt bwand 240; /* 240 = 0x000000F0 */
|
����������: 13:17 - 2 �����, 2006 | ����������: Anchorite - 16:49 - 2 �����, 2006
|
|
Keha
������������ �����������: ���. 2006
�����: 31 ���������
|
������: Quote: from Wasteland Ghost ������, �� ��� ���������� ���������� .
������� �������. � ������ ��� � ������ ��������� ��� ����������� ������ ���� ��� ������ �proto_data. � ������������� get_bit ��� �� � �����. ��� �� ��� �� �������, ��� � ����� ���������� ��� ���������� .
������: Quote: from Anchorite primaryAtackType := flagExt bwand 31; /* 31 = 0x0000000F */ secondaryAtackType := flagExt bwand 240; /* 240 = 0x000000F0 */
������� �������.
|
����������: 13:37 - 2 �����, 2006 | ����������: Keha - 13:45 - 2 �����, 2006
|
|
Wasteland Ghost
��������� ���� ����������
������: ������, ������ �����������: ���. 2002
�����: 2251 ���������
|
2Keha ������ ������, ������� ����� ����������� ������� �� ������� ����������. ��� ���� �������� ������� �������. get_bit, ������, ��� ���. ���� gvar_bit, mvar_bit, lvar_bit � �.�.. � ��� ��� ��� ���������. ��� �� �����, ���� �� �� ��.
|
����������: 13:49 - 2 �����, 2006
|
|
Keha
������������ �����������: ���. 2006
�����: 31 ���������
|
��������� bwand ������� ���� ������ at1:=dec-(dec/16)*16; at2:=dec/16-((dec/16)/16)*16; �� at1:= dec bwand 31; /* 31 = 0x0000000F */ at2:= dec bwand 240; /* 240 = 0x000000F0 */ �� ������-�� bwand �� ������ ��������, � ������� �� ����� �������. � ���� �� ����� ��� ������ ������ ������ ���� �����, ����������� ��� � �����. ��� ��� ����� ������ � bwand, � ���/16, ���� ���������� ��������. � ��� ��� ������ ����� � ������������ ���� ��� /16 ��������, � bwand ������ ��������, ��� �� �� ��, �� �������� ����������� 8��. ��� ��� �� �� ��� �������� �������� �� ���������, � ������ �������. ********************************* a2: ������� � ��� ���� � ����� ������� ����, ������ ���� � ����. ����� ���������� if� (a2 � ������ bwand ��������� �������� �� �� 0 �� 8 � ��� �� 0 �� 128 � ��� a1 �� �������� �� ��������� � ��� ������� �� ������� ��� ���� � ����� bwand ������� �������� 20 � 21. � �������� a1 �� ������ ��������� 8. dec:=proto_data(obj_pid(wip),7); at1:= dec bwand 31; /* 31 = 0x0000000F */ at2:= dec bwand 240; /* 240 = 0x000000F0 */ //at1:= get_bit(dec, 0); //at2:= get_bit(dec, 1); //at1:=dec-(dec/16)*16; //at2:=dec/16-((dec/16)/16)*16; display_msg("at1 = "+at1); display_msg("at2 = "+at2);
|
����������: 14:59 - 2 �����, 2006 | ����������: Keha - 15:37 - 2 �����, 2006
|
|
Wasteland Ghost
��������� ���� ����������
������: ������, ������ �����������: ���. 2002
�����: 2251 ���������
|
�������� ���� ��������� ������������ . bwand �� ����� "�� ��������" �� ����������� .
|
����������: 15:45 - 2 �����, 2006
|
|
Anchorite
������������
������: �� ����� �����������: ���. 2003
�����: 283 ���������
|
�� ��������� �. ������ 31 ������ ���� 15. ������ ����� ������� ������� ������ ������
|
����������: 16:51 - 2 �����, 2006 | ����������: Anchorite - 16:57 - 2 �����, 2006
|
|
Keha
������������ �����������: ���. 2006
�����: 31 ���������
|
������ � ���� LVAR �� �������� � ������ ? ��� �������� ������, �� ����� ����������� ��� �������� � ������� �� ������� ���, �� ��� ���� ���������, � ����� ��������� �� �� �������� ��� �������� ���� ��������(����������) . � scripts.lst ������ ����� ������ ������� - ������� � �# local_vars=5 ������� �� # local_vars=9. ������ ������ � ����� �������������� ������ � ����������� ���������: (obj_dude.int) //��� ����: #define LVAR_Last_Digest_Time � �(0) #define DRTROY_INJECTION � � � � �(1) #define CHECK_DUDE_V15ENT_LEVEL � (2) #define CHECK_RNDBESS_FLOAT � � � (3) #define TIMER_INIT_V13_SEQUENCE � �(4) // ��� �����: #define LVAR_count_GUN � � � � �(5) � #define LVAR_count_UNARM � � � (6) #define LVAR_count_MELE � � � � (7) #define LVAR_count_THROW � � �(8) � procedure Check_add_to_skill begin �variable rand; �variable skilev; �variable N_ LVAR; �variable skill_count; � �skilev:=has_skill(self_obj,skil1); �if skil1 == 0 then begin// ���� (0) - ������ ������ �� � � N_ LVAR:=5; //�� ����� ����� 5 �end else if skil1 >= 3 then begin � � N_ LVAR:=skil1+3; //����� ����� ��� ��������� ������ �end �rand:=random(0,180); �display_msg("random = "+rand); // �������� ��� ������� �if (rand >= skilev) then begin � � � �skill_count:=local_var(N_ LVAR); // ������ �� ����� � � �skill_count:=skill_count+1; � � � � � if (skill_count >=(skilev+1)) then begin � � � critter_mod_skill(self_obj,skil1,1); � � � skill_count:=0; � � � display_msg("+1 k skilu"+skil1); � � � end � � � � set_local_var(N_ LVAR,skill_count); // ������ � ����� � � � display_msg("kopilka skilla "+skil1+" ravna "+skill_count);// ��� ������� � end end
|
����������: 20:03 - 4 �����, 2006 | ����������: Keha - 20:23 - 4 �����, 2006
|
|
Alchemist
���������
������: �������-17 �����������: ���. 2004
�����: 298 ���������
|
� ����� ����������� ������ GVAR�. ��� �� �������, ������ ��� ������ �������� ������ ���? �, ������, �������� ����� �����, ���������� ��� �� ������������� ��� ��� � ��� � �����������, ��� ��� ���� ���� �������� ������.
----- /// What'ya be sain'? Vault 100+? We need nothing o'that!
|
����������: 13:01 - 7 �����, 2006
|
|
Wasteland Ghost
��������� ���� ����������
������: ������, ������ �����������: ���. 2002
�����: 2251 ���������
|
�������, �� ��� ������ . ���� � ���� ����������� � �����, �.�. � ������. ������ ����, ��� ���� ������ ���������� ������ ��������, ��� ������ � ����� ��� �����-�� ���������� . �� �������, ����� �� ������ LVAR (���������� ����������) � variable (��������� ����������)?
|
����������: 14:48 - 7 �����, 2006
|
|
|
|