.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   cs weapons modification (http://forums.bots-united.com/showthread.php?t=4017)

sPlOrYgOn 15-09-2005 04:49

Re: cs weapons modification
 
actually in war3mod it first sees if the damage kills the player then it sets the dead flag and health to 0 and sends the damage message and death message and updates the frags and deaths and gives the killer $300 then sends a message to update the money on the HUD of the killer..
basicly covers what CS does when a player kills another player..

BotUser 15-09-2005 22:22

Re: cs weapons modification
 
@sPlOrYgOn:
yes, you're right. However, if I just set health to 0 and the dead flag to 1 in CS, the killed player just freezes in an awkward position. So, what misses here is triggering the "death sequence" for a player getting killed. I dunno how this works in war3mod. Must check this further.

@Lazy:
who's the pityful creature you have in your sig picture ?

Lazy 16-09-2005 20:10

Re: cs weapons modification
 
First:
http://www.thatvideosite.com/view/518.html
http://www.thatvideosite.com/view/525.html

As for doing damage, it does seem that even though trigger_hurt->v.owner is set the damage inflictor does not get credit for the kill.
There may be other hacks to do damage but I'll have to look around for them when I get the chance.

Rusty Le Cyborg 23-09-2005 01:44

Re: cs weapons modification
 
2 Attachment(s)
Apologies for temporarily hijacking this thread, but I was wondering if this has been covered before.

Gas Grenades in CS or CZ?

I know there is a plugin for AMXMod that allows gas grenades. The problem being that they replace smoke grenades.

My question is... (to my hero Lazy!)

Is it possible to write a plugin which would enable them in CS? We have all the necessary models for them, and some sprites I believe.

Forum thread about Gas Nades

Cheers for now

PS - I will create another thread if you would rather :)

Lazy 23-09-2005 01:59

Re: cs weapons modification
 
Short answer:
It is not possible to add new weapons to an existing mod.

Long answer:
It can be hacked in, the flipside of tfc did this by giving every player a medkit and forcing them to select it when a custom weapon was used.
Unfortunately, CS and CZ do not have silent weapons so I don't think its possible that way.

It may however be possible to convert smoke grenades into gas grenades if the user presses the secondary attack button to change modes.

Since that only changes the behaviour of the entity rather than adding a new one it is probably possible.

I'll take a look at this tomorrow and see how it goes, I still have to finish a plugin for tfc that someone wanted.

Rusty Le Cyborg 23-09-2005 02:33

Re: cs weapons modification
 
Quote:

Originally Posted by Lazy
It may however be possible to convert smoke grenades into gas grenades if the user presses the secondary attack button to change modes.

Now that I'd like to see :)

Crikey... is there anything you don't know? ;)

Cheers for now

Lazy 02-10-2005 23:39

Re: cs weapons modification
 
Sorry for the delay of response, I'm still looking for a reliable way to damage players in CS.
Hopefully an idea will come around soon.

BotUser 29-10-2005 02:38

Re: cs weapons modification
 
No advance from my part on this issue. Well ... I guess I'll have to put up with the half-assed solution I have right now.

@Lazy: too bad you changed the your pic in the sig ...

Lazy 31-10-2005 03:37

Re: cs weapons modification
 
I'll take a look again later on when I have enough free space to re-install CS.

[offtopic]
I regularly change my avatar since I don't like to look at the same thing for a long period of time.
I have lots more of them but rotating them manually has been too time consuming.
[/offtopic]

Another crazy idea is to find the location of TakeDamage in memory.
If you do manage to find it you'll have to call it from assembly and figure out how it's arguments are placed on the stack.
For classes I think it's <object ptr> <param> <param> <ect> but I haven't touched that stuff in so long I may have it wrong or it may not be possible.

BotUser 03-11-2005 00:54

Re: cs weapons modification
 
As I can see, Lazy, you're a really devoted HL SDK guy. I highly appreciate your efforts and your input.

As far as the issue in this thread is concerned, I think I can live with what I have right now and I'll consider the case closed, so please don't waste any more of your precious time on this (unless you're interested in that problem yourself).

Thanks for your help, dude

botuser


All times are GMT +2. The time now is 03:16.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.