Category:Pt-br/GoldSrc Programming: Difference between revisions
m (Nesciuse moved page Category:GoldSrc Programming/pt-br to Category:Pt-br/GoldSrc Programming: -Language prefixes) |
m (-Using L template for links) |
||
Line 68: | Line 68: | ||
== Abstract coding == | == Abstract coding == | ||
* | * {{L|Trigger_PlayerFreeze}} | ||
* | * {{L|Paranoia Subtitles}} | ||
== Miscellaneous == | == Miscellaneous == | ||
== Plugins == | == Plugins == | ||
* | *{{L|Metamod}} | ||
:* | :*{{L|AMX Mod}}{{deprecated}} | ||
::* | ::*{{L|AMX Mod X}} | ||
:* | :*{{L|Sharp Mod}} | ||
== Reference == | == Reference == | ||
== Weapons == | == Weapons == | ||
* | * {{L|weapon_flamethrower}} | ||
{{category newcolumn|rowspan=99|width=50%|background-color=#F7F7F7|border-color=lightgray}} | {{category newcolumn|rowspan=99|width=50%|background-color=#F7F7F7|border-color=lightgray}} | ||
== Artificial Intelligence == | == Artificial Intelligence == | ||
* | * {{L|Making scientists always follow}} | ||
== Networking == | == Networking == | ||
Line 94: | Line 94: | ||
== Rendering == | == Rendering == | ||
* | * {{L|Sparks}} | ||
* | * {{L|Water Splash}} | ||
== User interface == | == User interface == | ||
* | * {{L|Changing HUD Colors}} | ||
== External libraries == | == External libraries == | ||
Line 110: | Line 110: | ||
== Game movement and camera == | == Game movement and camera == | ||
* | * {{L|Quake strafing}} | ||
* | * {{L|DoD bobing}} | ||
== External Links == | == External Links == | ||
* | * {{L|Programming Sites}} - sites about programming, including tutorials & articles. |
Revision as of 10:32, 11 July 2024
ComeçandoPrimeiro: Baixe o sdk do Half-life 1 em: https://github.com/twhl-community/halflife-updated, essa é melhor opção porque tem como usar visual studio 2022 Segundo: Abra a pasta extráida "halflife-updated-master/projects/vs2019/" e abra o arquivo projects.sln Antes de compilar vamos fazer algumas modificaçõesAbra em gerenciador de soluções hldll, depois sources Files, então dlls. Aperte botão direito do mouse em dlls, Adicione um novo item CódigoInclua nessa ordem esses headers, ou se não dará errors:
Crie uma classe de o seu nome e declare em público: class CtriggerHealth : public CBaseEntity { public: void Use(CBaseEntity * pActivator, CBaseEntity * pCaller, USE_TYPE use_Type, float value); }; use é um método para declarar que alguem a ativou pActivator, e pchamador para chamar a função crie uma função: void CtriggerHealth::Use(CBaseEntity* pActivator, CBaseEntity* pCaller, USE_TYPE use_Type, float value) { if (pActivator->IsPlayer()) { pActivator->pev->health = pev->health; } } o if é pra ver se o ativador é o jogador já o -> é próximo argumento no meio da classe e função adicione LINK_ENTITY_TO_CLASS(trigger_health, CtriggerHealth); isso serve para dar um nome a classe que esse nome será usado no editor de léveis resultado final:
class CtriggerHealth : public CBaseEntity { public: void Use(CBaseEntity * pActivator, CBaseEntity * pCaller, USE_TYPE use_Type, float value); }; LINK_ENTITY_TO_CLASS(trigger_health, CtriggerHealth); void CtriggerHealth::Use(CBaseEntity* pActivator, CBaseEntity* pCaller, USE_TYPE use_Type, float value) { if (pActivator->IsPlayer()) { pActivator->pev->health = pev->health; } } Common techniquesAbstract codingMiscellaneousPluginsReferenceWeapons |
Artificial IntelligenceNetworkingRenderingUser interfaceExternal librariesChanging genresMultiplayerGame movement and camera
External Links
|
This category currently contains no pages or media.