Raised This Month: $120 Target: $400
 30% 

Module: Half-Life Weapon Mod (v0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-23-2012 , 11:35   Re: Module: Half-Life Weapon Mod (v0.4)
Reply With Quote #11

Ask him
__________________
The functional way is the right way
GordonFreeman (RU) is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 04-23-2012 , 19:56   Re: Module: Half-Life Weapon Mod (v0.4)
Reply With Quote #12

Yep, i am too lazy to post my own module
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 04-25-2012 , 09:05   Re: Module: Half-Life Weapon Mod (v0.4)
Reply With Quote #13

Good module, thanx!
__________________
kiki33hun is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 04-26-2012 , 05:58   Re: Module: Half-Life Weapon Mod (v0.4)
Reply With Quote #14

I'd like to suggest to add:

Spoiler
__________________


Last edited by NiHiLaNTh; 04-26-2012 at 05:58.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 05-04-2012 , 09:05   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #15

Updated
__________________
The functional way is the right way
GordonFreeman (RU) is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 05-09-2012 , 09:34   Re: Module: Half-Life Weapon Mod (v0.3 Beta)
Reply With Quote #16

Quote:
Originally Posted by KORD_12.7 View Post
For CS? Nope.
Arrr you should convert this for CS too. The are no WeaponMod for CS.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 05-09-2012 , 10:04   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #17

Technically impossible to add new weapons to CS with AMXX. In CS we can only edit existed weapons.
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-09-2012 , 10:24   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #18

Quote:
Originally Posted by KORD_12.7 View Post
Technically impossible to add new weapons to CS with AMXX. In CS we can only edit existed weapons.
agree, though there are thing called Class Creator under Rage module.

Edit. Does this module suppots give_item? I tried to use it: give_item(id, "weapon_rg6") and it said unable to create item.
__________________


Last edited by NiHiLaNTh; 05-09-2012 at 10:25.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 05-09-2012 , 10:41   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #19

NiHiLaNTh,
Code:
stock wpnmod_give_item(const iPlayer, const szItem[]) {      new Float: vecOrigin[3];      pev(iPlayer, pev_origin, vecOrigin);            new iItem = wpnmod_create_item(szItem, vecOrigin);            if (pev_valid(iItem))      {           set_pev(iItem, pev_spawnflags, pev(iItem, pev_spawnflags) | SF_NORESPAWN);           dllfunc(DLLFunc_Touch, iItem, iPlayer);                     return iItem;      }            return -1; }
__________________
The functional way is the right way
GordonFreeman (RU) is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-10-2012 , 16:55   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #20

Quote:
Originally Posted by KORD_12.7 View Post
Technically impossible to add new weapons to CS with AMXX. In CS we can only edit existed weapons.
It's not impossible with hacking. When you do like
PHP Code:
create_entity("weapon_awp"
hl searches in the dll of your game for a function with the name "weapon_awp". That function is responsible to create a C++ object that is child of CBaseEntity. If you check the thing Nilhant refered in the post above or the weapon that Arkshine created with Rage you can see that you can do the following: hook the function that create entities, and when they got a specific string that you want like "weapon_stuff" you can provide an object you create yourself. Basically you override the behaviour of creating entity with hooks and it is kind of natural apart for having to add a hook. This applies to any mod.

You can see here http://forums.alliedmods.net/showpos...9&postcount=82
A plugin with module that actualy does this and lets you do
PHP Code:
give_item(id,"weapon_boomerang"
joaquimandrade is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:04.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode